RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed
| From: | Martin Lindhe | Date: | Mon, 28 Jan 2002 10:09:50 +0000 |
| Subject: | RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11666@lists.php.net to get a copy of this message | ||
> 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 = abc@123.com or something
/Martin
>
> > Could you try this out:
> >
> > $address = "reciever@address.com";
> > $head = "From: PHP Test <test@test.com>\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
>