Hello everybody.
I have the following problem when using the mail() function:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: FÁBIO <somemail@server.com>";
mail("someone@server.com", "Subject", "Message", "$headers")
The problem is in "From:". When I use a name which has any Latin (ISO 8859-1) chars, it doesn't send the email. But when I use a name without latin chars, it sends the mail.
For example, if i use something like this:
"From: FABIO <.... >";
there is no problem, and the mail's sent!
I really can't understand why this happens! I've tried to insert the Charset as you can see, but it still doesn't work!
Thanks in advance!
Regards,
Fábio Silva