laravel-mailjet
laravel-mailjet copied to clipboard
Can't set the X-MJ-CustomID header
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