motze92 / office365-mail

Office365 transport for Laravel
MIT License
62 stars 21 forks source link

Default Laravel-Mails are sent with the getContentType() = "multipart/alternative" - this messages are sent as plain text - not html #1

Closed matrad closed 4 years ago

matrad commented 4 years ago

Default Laravel-Mails are sent with the getContentType() = "multipart/alternative" - this messages are sent as plain text - not html

So we should verify the integration with laravel-default-notifications.

For us it looks ok if we change the content-type from:

'contentType' => $message->getContentType() == "text/html" ? 'html' : 'text',

to:

in_array($message->getContentType(), ["text/html", "multipart/alternative"]) ? 'html' : 'text',

matrad commented 4 years ago

@motze92 added a commit with the relevant fix. Please review it, merge it and add a new version-tag to the repository - thanks :)