如何从 swiftmail 发送等效的 -f 参数?
How to send -f parameter equivalent from swiftmail?
我正在尝试使用 swift 邮件从 PHP 邮件迁移到 SendGrid。我无法理解 -f email
附加参数。
mail($Email,$sub,$cont,$headers,'-f noreply@mydomain.com')
我不确定这是什么类型的header。我应该将其作为 path_header 发送吗?
我无法理解这个here的解释。
这个是用来设置你邮箱的"envelope from";它实际上不是 header。 This post 描述了这意味着什么。
通过 SendGrid 发送时,您不需要指定此标志或明确设置您的 "envelope from." 只需设置您的发件人地址和发件人姓名即可。
我正在尝试使用 swift 邮件从 PHP 邮件迁移到 SendGrid。我无法理解 -f email
附加参数。
mail($Email,$sub,$cont,$headers,'-f noreply@mydomain.com')
我不确定这是什么类型的header。我应该将其作为 path_header 发送吗?
我无法理解这个here的解释。
这个是用来设置你邮箱的"envelope from";它实际上不是 header。 This post 描述了这意味着什么。
通过 SendGrid 发送时,您不需要指定此标志或明确设置您的 "envelope from." 只需设置您的发件人地址和发件人姓名即可。