-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
The SendGridTransport.php:113 is appending the e-mail body in incorrect order:
if (!empty($message->getBodyHtml())) {
$this->_reqParams['content'][] = (object)[
'type' => 'text/html',
'value' => trim($message->getBodyHtml()),
];
}
if ($emailFormat == 'both' || $emailFormat == 'text') {
$this->_reqParams['content'][] = (object)[
'type' => 'text/plain',
'value' => trim($message->getBodyText()),
];
}
This throws an error when using $this->setEmailFormat('both'); as SendGrid expects the text/plain format before the text/html one.
Metadata
Metadata
Assignees
Labels
No labels