mercredi 26 décembre 2018

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 .
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.
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');
    });
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire