Hi,
I am having a problem with my PHP mail function. I am trying to send an email from user@site.com. This code is fine:
mail($to, $subject, $body,
"From: user@site.com\n" .
"MIME-Version: 1.0\n" .
"Content-Type: multipart/alternative;\n" .
" boundary=" . $mime_boundary_header) or die('Mail Error');
however this does not
mail($to, $subject, $body,
"From: Mr. User <user@site.com>\n" .
"MIME-Version: 1.0\n" .
"Content-Type: multipart/alternative;\n" .
" boundary=" . $mime_boundary_header) or die('Mail Error');
The exact error returned is
[Sat Sep 26 21:08:11 2009] [error] [client 127.0.0.1] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 501 <<TubeTool> user@site>: missing or malformed local part in [removed for security]\\scripts\\0\\saccount\\signup.php on line 168, referer: [...]
Please note that the < and > are exactly that in the error log not < or >
Regards,
Sam Rudge