dimanche 8 juin 2014

Email charset. HTML emails. PHP mail


Vote count:

0




I ve problem with php charset in body message. Mail contains characters: žřýžšžýěýážýíýžÃ


My contact.php



<?php
//if "email" variable is filled out, send email
if (isset($_REQUEST['email'])) {

//Email information
$admin_email = "mail@gmail.com";
$email = $_REQUEST['email'];
$subject = 'Message';
$comment = $_REQUEST['comment'];



//send email

mail($admin_email, "$subject", $comment, "From:" . $email);

//Email response
echo "OK";
}

//if "email" variable is not filled out, display the form

else {
?>

<form method="post">
Email: <input name="email" type="text" /><br />
Subject: <input name="subject" type="text" /><br />
Message:<br />
<textarea name="comment" rows="15" cols="40"></textarea><br />
<input type="submit" value="Submit" />
</form>

<?php
}
?>


Please, can you help me with UTF8 enconding? Thank you so much



asked 35 secs ago






Aucun commentaire:

Enregistrer un commentaire