laravel-mailjet icon indicating copy to clipboard operation
laravel-mailjet copied to clipboard

Can't set the X-MJ-CustomID header

Open riiad opened this issue 1 year ago • 2 comments

Hi,

I tried both the SMTP configuration and the Send API, but it looks like my emails does not have the X-MJ-CustomID header.

Here is an example of a mailable:

public function build()
{
    $this->replyTo(...);

    $this->withSymfonyMessage(function (Message $message) {
        $message->getHeaders()->addTextHeader('X-MJ-CustomID', '...');

        return $message;
    });


    return $this
        ->subject('...')
        ->markdown('...')->with(...);
}

Am i doing something wrong ?

Laravel 9 / mailjet/laravel-mailjet:3.0.4 Thanks

riiad avatar Nov 06 '23 13:11 riiad