如何设置标题“;h: 回复“;使用Mailgun php API


How to set up headers "h:Reply-To" with Mailgun php API

如何在Mailgun php API中设置头文件"Reply-to"?

我已经使用了这个代码,但不能成像热设置标题

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')