Skip to content

Commit

Permalink
don't inline if no html
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala authored Feb 16, 2022
1 parent 17feadf commit 4716989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MailgunSwiftTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public function buildMessage(Swift_Mime_SimpleMessage $message)
}

// Should we inline css
if (!$inlineCss && MailgunHelper::config()->inline_styles) {
if (!$inlineCss && MailgunHelper::config()->inline_styles && $bodyHtml) {
$bodyHtml = EmailUtils::inline_styles($bodyHtml);
}

Expand Down

0 comments on commit 4716989

Please sign in to comment.