diff --git a/src/MailgunSwiftTransport.php b/src/MailgunSwiftTransport.php index 32b5bd7..299e193 100644 --- a/src/MailgunSwiftTransport.php +++ b/src/MailgunSwiftTransport.php @@ -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); }