- Added named email address
This commit is contained in:
parent
1f61c964bc
commit
81f5276f9b
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user