Skip to content
Snippets Groups Projects

Update file SMTPMailSystem.php

Open Kyle requested to merge issue/smtp-3194372:3194372-error-sending-email into 8.x-1.x
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -435,9 +435,9 @@ class SMTPMailSystem implements MailInterface, ContainerFactoryPluginInterface {
// Only add a "reply-to" if it's not the same as "from".
$reply_to_comp = $this->getComponents($value);
$reply_to_email = $reply_to_comp['email'];
if ($reply_to_email !== $from) {
if ($reply_to_email && $reply_to_email !== $from) {
$mailer->AddReplyTo($reply_to_email, $reply_to_comp['name']);
}
}
break;
case 'sender':
Loading