Loading src/Plugin/Mail/SMTPMailSystem.php +5 −8 Original line number Diff line number Diff line Loading @@ -276,15 +276,12 @@ class SMTPMailSystem implements MailInterface, ContainerFactoryPluginInterface { $from = $this->configFactory->get('system.site')->get('mail'); } if (empty($from)) { $from = $message['from']; // The $from address might contain the "name" part. If it does, split it, // since PHPMailer expects $from to be the raw email address. $matches = []; if (preg_match('/^(.*)\s\<(.*)\>$/', $from, $matches)) { $from = $matches[2]; } } // Updates $headers fields. $headers['sender'] = $from; Loading Loading
src/Plugin/Mail/SMTPMailSystem.php +5 −8 Original line number Diff line number Diff line Loading @@ -276,15 +276,12 @@ class SMTPMailSystem implements MailInterface, ContainerFactoryPluginInterface { $from = $this->configFactory->get('system.site')->get('mail'); } if (empty($from)) { $from = $message['from']; // The $from address might contain the "name" part. If it does, split it, // since PHPMailer expects $from to be the raw email address. $matches = []; if (preg_match('/^(.*)\s\<(.*)\>$/', $from, $matches)) { $from = $matches[2]; } } // Updates $headers fields. $headers['sender'] = $from; Loading