Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有等效的方法
$mail->MsgHTML($body);
用于发送带有html 电子邮件的纯文本后备电子邮件?
如果这就是它的工作原理?
$mail->AltBody是你想要设置的。同样,您可以使用$mail->Body来设置message 的html 正文。你只需要在MsgHTML有附件和我不相信的情况下使用。
$mail->AltBody
$mail->Body
MsgHTML