【问题标题】:Is it possible to integrate sendgrid with built in PHP mail system是否可以将 sendgrid 与内置 PHP 邮件系统集成
【发布时间】:2022-01-11 15:26:05
【问题描述】:

是否可以将 sendgrid 与内置的 PHP 邮件系统集成,这样我只需要更改环境文件,sendgrid 就会自动知道该怎么做?

【问题讨论】:

    标签: sendgrid


    【解决方案1】:

    这里是 Twilio SendGrid 开发人员宣传员。

    我不是 PHP 专家,但 the answers from this question 建议使用 PHP mail 从外部服务器(如 SendGrid)发送电子邮件是一个坏主意,并且有更好的库可用于使用 SendGrid 发送电子邮件。

    如果您想将 SendGrid 设置为通过 SMTP 发送,那么建议是 Swift MailerPHPMailer。检查documentation on sending with SMTP and SendGrid 以获得您需要的设置。

    或者,我们建议使用SendGrid PHP library 发送电子邮件,充分利用SendGrid API 的功能。

    【讨论】:

      猜你喜欢
      • 2011-11-29
      • 2018-09-15
      • 1970-01-01
      • 2015-10-23
      • 2015-11-22
      • 2023-03-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多