RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed
| From: | Martin Lindhe | Date: | Fri, 25 Jan 2002 09:08:48 +0000 |
| Subject: | RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11636@lists.php.net to get a copy of this message | ||
> Court-
> No luck yet. Here is the call to mail():
>
> $mr = mail("ck@tizac.com", "subject", "Line 1");
>
> Simple and straight forward. But I'm still getting the error:
> Warning: Server Error in E:\Inetpub\wwwroot\ckmailtest.php on line 22
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
>
> Charlie
>
> > I had a similar error running in CGI mode on WinNT. I
> ended up taking
> > apart my call to mail() until it worked. A simple call with dummy
> > values and no extra headers would work, but what I wanted
> would not.
> > I traced the cause to the bcc header. Also, I noticed that the cc
> > header does not work either
> > on the windows cgi version. I even noticed that the case of the
> > Cc and Bcc
> > headers changed the errors that I received.
>