$email_content = <<<eot@@##@@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代码被处理了
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号