[thelist] PHP Mail on Windows Server

Mr. Tenuta dtportnoy at videotron.ca
Wed Jun 16 14:28:00 CDT 2004

Hey everyone, 

First time posting so I hope it comes out right. I'm really stuck on this weird mail problem on one of my forms. So far all mails send successfully except for one that has the @pwi.net address. I've been looking around for solutions and have added many things to help it work with windows such as inlcuding \r\n as line break instead of just \n etc...

In short after testing, seems to be that the mail() function returns false with any @pwi.net address. Has anyone run into the same or similar problem? I'll give a little example of how I set some of the variables being passed to the mail function:

$To = $row['email'];
$message = "Greetings " . $row["fname"] . ",\r\n\r\n";

$subject = "Account Activated";
$headers = "From: ChildNet Funding";

mail($To, $subject, $message, $headers). 

I also get the same error when removing the headers.
Thanks for your help in advance :)


More information about the thelist mailing list