From 6be42a39ed77e434406b53b4fc9d62ae612e44ea Mon Sep 17 00:00:00 2001 From: Dieter Holvoet <51747-DieterHolvoet@users.noreply.drupalcode.org> Date: Tue, 18 Jul 2023 19:37:10 +0000 Subject: [PATCH] Issue #3375300: Body of plain text mails is stripped --- src/Plugin/Mail/SymfonyMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/Mail/SymfonyMailer.php b/src/Plugin/Mail/SymfonyMailer.php index 2b44c04..db01470 100644 --- a/src/Plugin/Mail/SymfonyMailer.php +++ b/src/Plugin/Mail/SymfonyMailer.php @@ -713,7 +713,7 @@ class SymfonyMailer implements MailInterface, ContainerFactoryPluginInterface { protected function getContentType(array $message) : string { // The message parameter takes priority over config. Support the alternate // parameter 'format' for back-compatibility. - $content_type = $message['params']['content_type'] ?? $message['params']['format'] ?? 'text/html'; + $content_type = $message['params']['content_type'] ?? $message['params']['format'] ?? NULL; // 1) check the message parameters. if ($content_type) { return $content_type; -- GitLab