> Court- > No luck yet. Here is the call to mail(): > > $mr = mail("[EMAIL PROTECTED]", "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 = "[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 > > 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. > -- 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]