function DelayedEnvelope::getRecipientsFromHeaders
1 call to DelayedEnvelope::getRecipientsFromHeaders()
- DelayedEnvelope::getRecipients in vendor/
symfony/ mailer/ DelayedEnvelope.php
File
-
vendor/
symfony/ mailer/ DelayedEnvelope.php, line 69
Class
- DelayedEnvelope
- @author Fabien Potencier <fabien@symfony.com>
Namespace
Symfony\Component\MailerCode
private static function getRecipientsFromHeaders(Headers $headers) : array {
$recipients = [];
foreach ([
'to',
'cc',
'bcc',
] as $name) {
foreach ($headers->all($name) as $header) {
foreach ($header->getAddresses() as $address) {
$recipients[] = $address;
}
}
}
return $recipients;
}