mailjet / laravel-mailjet

Laravel package for Mailjet API V3 and Laravel Mailjet Mail Transport
MIT License
94 stars 93 forks source link

Can't set the X-MJ-CustomID header #73

Closed riiad closed 4 months ago

riiad commented 1 year ago

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 commented 10 months ago

Anyone ?

oleksandr-mykhailenko commented 9 months ago

Hello @riiad According to the documentation ( https://symfony.com/doc/6.0/mailer.html#creating-sending-messages ) everything looks correct. Just try to debug and show how your headers were built

oleksandr-mykhailenko commented 4 months ago

Close due to inactivity