Skip to content

Commit

Permalink
Fixed email content type recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Ackermann committed May 16, 2020
1 parent 1794e85 commit 0a494f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MsGraphMailTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function getPayload(Swift_Mime_SimpleMessage $message) {
'bccRecipients' => $this->toRecipientCollection($message->getBcc()),
'importance' => $priority === 3 ? 'Normal' : ($priority < 3 ? 'Low' : 'High'),
'body' => [
'contentType' => Str::contains($message->getContentType(), 'html') ? 'html' : 'text',
'contentType' => Str::contains($message->getContentType(), ['text', 'plain']) ? 'text' : 'html',
'content' => $message->getBody(),
],
'attachments' => $this->toAttachmentCollection($attachments),
Expand Down

0 comments on commit 0a494f5

Please sign in to comment.