Skip to content
Snippets Groups Projects
Unverified Commit 53344a57 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4368 from JediKev/issue/mailer-emailaddress-object-as-array

mailer: EmailAddress Object as Array
parents 1067054d debf76de
No related branches found
No related tags found
No related merge requests found
......@@ -434,6 +434,9 @@ class Mailer {
$recipient->getName(),
$recipient->getEmail()));
break;
case $recipient instanceof EmailAddress:
$mime->addTo($recipient->getAddress());
break;
default:
// Assuming email address.
$mime->addTo($recipient);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment