diff --git a/src/Plugin/Mail/SMTPMailSystem.php b/src/Plugin/Mail/SMTPMailSystem.php
index 268ef3e..ba59926 100644
--- a/src/Plugin/Mail/SMTPMailSystem.php
+++ b/src/Plugin/Mail/SMTPMailSystem.php
@@ -314,7 +314,7 @@ class SMTPMailSystem implements MailInterface, ContainerFactoryPluginInterface {
     // 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)) {
+    if (preg_match('/^(.*)\s?\<(.*)\>$/', trim($from), $matches)) {
       $from = $matches[2];
     }
 
