From 4716989cda598e6daa772520ebe1d6f45a5674ec Mon Sep 17 00:00:00 2001 From: Thomas Portelange Date: Wed, 16 Feb 2022 08:40:42 +0100 Subject: [PATCH] don't inline if no html --- src/MailgunSwiftTransport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }