Thanks for your quick reply.
Sorry, I should have said that I had tried what was said in that thread, or replied in there.
Here's my code:
<SNIP>
$mailto1 = "joe@bloggs.com";
$mailto2 = "\"Joe Q. Bloggs\" <joe@bloggs.com>";
$mailsubject = "PHP mail To test";
$mailbody = "Mail Test";
$mailheaders = "From: \"Joe Q. Bloggs\" <joe@bloggs.com>";
$result = mail($mailtoN, $mailsubject, $mailbody, $mailheaders);
</SNIP>
$mailto1 works fine, but $mailto2 doesn't, and gives the error:
Warning: mail() [function.mail]: SMTP server response: 501 Bad address syntax
I'm probably doing something stupidly wrong, but I don't see it. If you have any ideas, I'd be very greatful.
Thanks again,
Krishin.