php的html电子邮件发送问题... [英] html e-mail seding problem with php...
问题描述
大家好,
我有以下用PHP编写的html邮件发件人代码。这是正常工作但是我的问题是,代码没有正确地发送文本
,这是在变量$ mesaj中。代码发送一些不可读的
文本。任何帮助将不胜感激,Thanx all。
注意:我把问题的示例图像放在:
http://www.wiliw.com/problem2.gif
Cem Louis
< ;?
$ mesaj =" ??iİıIşŞğĞ" ;;
$ mailtext ="< html>< head>" ;;
$ mailtext。="< meta http-equiv = \" Content-Type \" content = \" text / html;
charset = windows-1254 \">" ;;
$ mailtext。="< meta http -equiv = \"内容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。="来自:邮件程序< ma **** @ site.com> \ n" ;;
$ headers。=" X-Sender:ma **** @ site.com \ n" ;;
$ headers。=" ; X-Mailer:邮件系统(ab***@me.com)\ n";
$ headers。=" X-Priority:3 \ n;
$ headers。=" Return-Path: ma****@site.com \ n" ;;
$ headers。=" Content-Type:text / html; charset = windows-1254 \ n";
$ email_to =" re *******@site.com" ;;
$ frommail =" ma **** @ site.com" ;;
$ subject_line ="从网站收到邮件!" ;;
邮件($ email_to,$ subject_line,$ mailtext,$ header);
?> ;
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.
Note: I put the sample image of the problem in:
http://www.wiliw.com/problem2.gif
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<ma****@site.com> \n";
$headers .= "X-Sender:ma****@site.com \n";
$headers .= "X-Mailer:Mailing system (ab***@me.com) \n";
$headers .= "X-Priority: 3 \n";
$headers .= "Return-Path: ma****@site.com \n";
$headers .= "Content-Type:text/html;charset=windows-1254 \n";
$email_to = "re*******@site.com";
$frommail = "ma****@site.com";
$subject_line = "Got mail from the site!";
mail($email_to,$subject_line,$mailtext, $headers);
?>
推荐答案
mesaj"。代码发送一些不可读的
文本。任何帮助将不胜感激,Thanx all。
注意:我把问题的示例图像放在:
http://www.wiliw.com/problem2.gif
Cem Louis
< ;?
mesaj". Code sends some unreadable
text. Any help would be appreciated, Thanx all.
Note: I put the sample image of the problem in:
http://www.wiliw.com/problem2.gif
Cem Louis
<?
mesaj =" ??iİıIşŞğĞ" ;;
mesaj = "??iİıIşŞğĞ";
< br>
mailtext ="< html>< head>" ;;
mailtext = "<html><head>";
这篇关于php的html电子邮件发送问题...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!