Hi to all,
I have the following html mail sender code written in php. It is working properly but my problem is, code doesn't send the text correctly which is in the varible "$mesaj". Code sends some unreadable text. Any help would be appreciated, Thanx all.
Not: The problem sample is in the attachment...
Cem Louis
<?
$mesaj = "çÇiÝýIþÞðÐ";
$mailtext = "<html><head>";
$mailtext .= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1254\">";
$mailtext .= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-9\">";
$mailtext .= "<meta http-equiv=\"content-language\" content=\"TR\">";
$mailtext .= "</head><body>";
$mailtext .= "$mesaj";
$mailtext .= "</body></html>";
$headers .= "MIME-Version: 1.0 \n" ;
$headers .= "From: the mailer<mailer@site.com> \n";
$headers .= "X-Sender:mailer@site.com \n";
$headers .= "X-Mailer:Mailing system (about@me.com) \n";
$headers .= "X-Priority: 3 \n";
$headers .= "Return-Path: [email]mailer@site.com[/email] \n";
$headers .= "Content-Type:text/html;charset=windows-1254 \n";
$email_to = "recepient@site.com";
$frommail = "mailer@site.com";
$subject_line = "Got mail from the site!";
mail($email_to,$subject_line,$mailtext, $headers);
?>