【问题标题】:How to send -f parameter equivalent from swiftmail?如何从 swiftmail 发送等效的 -f 参数?
【发布时间】:2016-10-14 07:22:37
【问题描述】:

我正在尝试使用快速邮件从 PHP 邮件迁移到 SendGrid。我无法理解-f email 附加参数。

mail($Email,$sub,$cont,$headers,'-f noreply@mydomain.com')

我不确定这是什么类型的标题。我应该把它作为 path_header 发送吗?

我无法理解这个here的解释。

【问题讨论】:

    标签: php sendgrid swiftmailer


    【解决方案1】:

    这用于在您的电子邮件中设置“信封发件人”;它实际上不是标题。 This post 描述了这意味着什么。

    通过 SendGrid 发送时,您无需指定此标志或明确设置“信封来源”。只需设置您的发件人地址和 fromName 即可。

    【讨论】:

      猜你喜欢
      • 2012-10-13
      • 2014-07-13
      • 1970-01-01
      • 2012-06-09
      • 1970-01-01
      • 1970-01-01
      • 2012-06-17
      • 1970-01-01
      • 2016-03-04
      相关资源
      最近更新 更多