$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
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