> Hi Martin-
> 
> Separating the parameters from the function call didn't work. 
> I think the problem is with the WindowsNT SMTP server. How 
> should the WindowsNT SMTP server be set up to make mail() work?
> 
> Charlie

Just set the SMTP directive in php.ini to the mail server you wish to use

and also set
sendmail_from = [EMAIL PROTECTED] or something

/Martin

> 
> > Could you try this out:
> >
> > $address = "[EMAIL PROTECTED]";
> > $head = "From: PHP Test <[EMAIL PROTECTED]>\r\n";
> > $subject = "hello world";
> > $message = "Hello there\nTest123\n";
> > mail($address, $subject, $message, $head);
> >
> > I think the mail header is required, anyway this works for me and i 
> > suggested it to a guy here yesterday that had similar probs and it 
> > worked right out for him too
> >
> > /Martin
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to