PHPEmail

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-20 12:30:04
Original
1129 people have browsed it

$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()
Copy after login

收到的邮件字符完整显示


回复讨论(解决方案)

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


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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template