如何使用 Mailgun php API 设置 headers "h:Reply-To"
How to set up headers "h:Reply-To" with Mailgun php API
如何在 Mailgun php API 中设置 headers "Reply-to"?
我一直在使用此代码,但无法热像设置 headers
Mail::send('email.message', $data, function ($message) use ($data) {
$message->to($data['to_email'], $data['to_name'])
->subject($data['subject'])
->from($data['from_email'], $data['from_name']);
});
就像在您的 $message
链
上添加一个 replyTo 一样简单
Mail::send('email.message', $data, function($message) use($data)
{
$message->to($data['to_email'], $data['to_name'])
->subject($data['subject'])
->from($data['from_email'], $data['from_name'])
->replyTo('REPLY.TO.THIS@email.com');
});
如果要在回复中添加名称,只需添加另一个名称为的参数:
->replyTo('REPLY.TO.THIS@email.com', 'Arsen Ibragimov')
如何在 Mailgun php API 中设置 headers "Reply-to"?
我一直在使用此代码,但无法热像设置 headers
Mail::send('email.message', $data, function ($message) use ($data) {
$message->to($data['to_email'], $data['to_name'])
->subject($data['subject'])
->from($data['from_email'], $data['from_name']);
});
就像在您的 $message
链
Mail::send('email.message', $data, function($message) use($data)
{
$message->to($data['to_email'], $data['to_name'])
->subject($data['subject'])
->from($data['from_email'], $data['from_name'])
->replyTo('REPLY.TO.THIS@email.com');
});
如果要在回复中添加名称,只需添加另一个名称为的参数:
->replyTo('REPLY.TO.THIS@email.com', 'Arsen Ibragimov')