[英]Get receive custom header in Laravel with SwiftMessage from reply E-mail
I send E-mail with Mailable on laravel and I add custom header with SwiftMessage
. 我发E-mail与可邮寄上laravel,我用添加自定义标题
SwiftMessage
。
when I send E-mail,Laravel send mail with my custom header but problem is when reply my email from return E-mail does not exist my custom header. 当我发送电子邮件时,Laravel发送带有我的自定义标头的邮件,但问题是从返回电子邮件中回复我的电子邮件时不存在我的自定义标头。
This is my code: 这是我的代码:
public function build()
{
$this->view('sendmail')->with('text', $this->data);
$this->withSwiftMessage(function ($message) {
$message->getHeaders()
->addTextHeader('my_header', 'my_header_value');
});
}
将自定义标题包含在回复电子邮件中是您无法控制的-这取决于发送回复的电子邮件客户端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.