Skip to content

Commit

Permalink
Fixed sending emails when using friendly names
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Nov 25, 2014
1 parent 6876a08 commit aea5556
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/NotificationCenter/Util/String.php
Expand Up @@ -159,8 +159,10 @@ public static function compileRecipients($strRecipients, $arrTokens)
if ($strAddress != '') {
$strAddress = static::recursiveReplaceTokensAndTags($strAddress, $arrTokens, static::NO_TAGS|static::NO_BREAKS);

list($strName, $strEmail) = \String::splitFriendlyEmail($strAddress);

// Address could become empty through invalid insert tag
if ($strAddress == '' || !\Validator::isEmail($strAddress)) {
if ($strAddress == '' || !\Validator::isEmail($strEmail)) {
continue;
}

Expand Down

0 comments on commit aea5556

Please sign in to comment.