I am sending an automated mail,written in Greek, from a php script.
I tried:
$headers = "MIME-Version: 1.0
";
$headers .= "Content-type: text/plain; charset=utf-8
";
$headers .= "From: example@mail.com
";
$headers .= "Reply-To: example@mail.com
";
mail($to, $subject,$body, $headers) ;
The body and subject are in Greek. Hotmail is reading subject but not the body and gmail reads it well. I replaced utf-8 with iso-8859-7 (contains greek chars) and it works .
1) Any idea why it doesn't work with utf-8?
2) Also gmail is writing my server in the mail.. How can i prevent this from happening?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…