Re: UTF - MIME

From: Date: Sun, 11 Jan 2004 13:10:50 +0000
Subject: Re: UTF - MIME
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-17775@lists.php.net to get a copy of this message
I use this code to send my feedback form to my email address that filled in UTF-8: ================================================ $Recipient="info@algorithmCo.com"; $message = "<html><head><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\"></head><body dir=rtl>\n"; $message .= "Subject: $subject<br>\n"; $message .= "Company: $data[1]<br>\n"; $message .= "Name: $data[0]<br>\n"; $message .= "Family: $data[7]<br>\n"; $message .= "Sender e-mail : $email<br>\n"; $message .= "Address: $data[2]<br>\n"; $message .= "Phone/Fax: $data[3]<br>\n"; $message .= "Biz: $data[4]<br>\n"; $message .= "Interets: $data[5]<br>\n"; $message .= "Coments: $data[6]<br>\n"; $message .= "<hr color=navy><center><a href=\"http://www.AlgorithmCo.com\"><font size=-2>Powered by Algorithm Co</font></a></center>\n"; $message .= "</body></html>\n"; $headers = "From: $name <$email>\n"; $headers .= "X-Develpoer: <www.AlgorithmCo.com>\n"; $headers .= "X-Priority: 1\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=utf-8\r\n"; $headers .= "Return-Path: <$email>\n"; // Return path for errors $mail_sent=mail($Recipient, $subject, $message, $headers); ======================================================================= "M." <manghool@myrealbox.com> wrote in message news:001101c2acb2$349632d0$1b52dbd9@mottaghi... > Hi, > i want to send a mail with unicode contents, what is the "content-type" and > "content-transfer-encoding"?? > thank you > omid >

« previous php.windows (#17775) next »