PHPMailer $mail->From headers not working with gmail

前端 未结 1 971
北恋
北恋 2021-01-12 19:37

I\'m using the following code to send a mail after a form submission with the PHP mailer class https://github.com/Synchro/PHPMailer. The mail sends and is received successfu

相关标签:
1条回答
  • 2021-01-12 20:02

    With gmail you have to configure an email address as allowed "$mail->from" first. This FAQ entry explains how to do it: https://support.google.com/mail/answer/22370?hl=en

    0 讨论(0)
提交回复
热议问题