Email cant suport greek chars
Posted: Tue Mar 09, 2010 4:08 am
Hello people.
I have an html form with some text fields.The user can write english or greek at the fields.
My php script is this
In my email the greek chars dosnt show of i think becouse of headers.But i cant find the solution.Can somone help me plz?
I have an html form with some text fields.The user can write english or greek at the fields.
My php script is this
Code: Select all
<?php
$name = $_POST['name'];
$lname = $_POST['lname'];
$address = $_POST['address'];
$tk = $_POST['tk'];
$area = $_POST['area'];
$city = $_POST['city'];
$phone = $_POST['phone'];
$mobile = $_POST['mobile'];
$hours = $_POST['hours'];
$age = $_POST['age'];
$profession = $_POST['profession'];
$afm = $_POST['afm'];
$doi = $_POST['doi'];
$charset='UTF-8';
$subject = "?????? ????????? franchise.";
$encoded_subject="=?$charset?B?".base64_encode($subject)."?=\n";
$to="tasos_kakouris@hotmail.com";
$body = "
?????: $name \n
???????: $lname \n
";
$headers="From: ".$from."\n"
. "Content-Type: text/plain; charset=$charset; format=flowed\n"
. "MIME-Version: 1.0\n"
. "Content-Transfer-Encoding: 8bit\n"
. "X-Mailer: PHP\n";
mail($to,$encoded_subject, $body,$headers);
?>