如何从swiftmail发送-f参数等效?

时间:2016-10-14 07:22:37

标签: php sendgrid swiftmailer

我正在尝试使用swift邮件从PHP邮件迁移到SendGrid。我无法理解make install其他参数。

-f email

我不确定这是什么类型的标头。我应该将其作为path_header发送吗?

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

1 个答案:

答案 0 :(得分:1)

这用于设置"信封来自"在你的电子邮件;它实际上不是标题。 This post描述了这意味着什么。

通过SendGrid发送时,您不需要指定此标记或明确设置您的"信封。"只需设置您的发件人地址和fromName,您就可以了。