RE: [PHP-WIN] mail() Incorrect Address Format when using IIS7/FastCGI

2008-01-29 Thread Jeff White
$mime_boundary . "--" . EOL . EOL; // finish with two eol's for better security. see Injection. # SEND THE EMAIL ini_set(sendmail_from, $fromaddress); // the INI lines are to force the From Address to be used ! $mail_sent = mail($to, $subject

[PHP-WIN] mail() Incorrect Address Format when using IIS7/FastCGI

2008-01-29 Thread Dan Richfield
When using IIS7 with PHP 5.2.5 with the FastCGIModule, the mail() function returns the following error message when trying to use anything but a plain email address (ex. [EMAIL PROTECTED]) in the From or To headers: PHP Warning: mail() [function.mail]: SMTP server response: 501 Incorrect Address