phpmailer - The following SMTP Error: Data not accepted

后端 未结 15 1026
半阙折子戏
半阙折子戏 2020-12-01 17:34

I\'m trying to figure out this issue for 6 hours. But there is nothing to make sense. Here is the scenario; There is a well formatted HTML template.

<         


        
15条回答
  •  时光取名叫无心
    2020-12-01 18:30

    Over a certain message of size, it messes up the content when setting through $mail->Body.

    You can test it, if it works well with small messages, but doesn't work with larger (over 4-6 kB), then this is the problem.

    It seems to be the problem of $mail->Body, so you can get around this by setting the HTML body manually via $mail->MsgHTML($message). And then you can try to only add the non-html body by $mail->AltBody.

    Hope that I could help, feel free to provide more details, information.

提交回复
热议问题