- Added named email address
This commit is contained in:
1 parent
1f61c964bc
commit
81f5276f9b
1 file changed
+6
-1
@@ -86,7 +86,12 @@ class SymfonyMailer implements MailerInterface
|
||||
$list = [];
|
||||
|
||||
foreach((array) $array as $addr => $name) {
|
||||
if (is_numeric($addr)) {
|
||||
if (is_array($name)) {
|
||||
foreach($name as $email => $fullname) {
|
||||
$list[] = "$fullname <$email>";
|
||||
}
|
||||
}
|
||||
elseif (is_numeric($addr)) {
|
||||
$list[] = $name;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user