RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed
| From: | Charlie Killian | Date: | Fri, 25 Jan 2002 16:25:45 +0000 |
| Subject: | RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-11644@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
> 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