PHPEmail

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-20 12:30:041131browse

$email_content = <<<EOT<img  src="a.png"/ alt="PHPEmail" >EOT;$mail=new PHPMailer();$mail -> SMTPAuth = true; $mail -> Mailer   = "smtp";$mail -> WordWrap = 1024;$mail->Body=$email_content;   $mail->Send()

收到的邮件字符完整显示


回复讨论(解决方案)

$mail->IsHTML(true); // set email format to HTML (是否使用HTML格式)


$mail->AddAttachment("/var/tmp/file.tar.gz"); // 添加附件

没有设置为使用html格式所以html代码被处理了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn