I've got a form that allows users to send an article to friends. The friends are set in a $recipient
array. I can dump the array and it looks fine:
var_dump($recipients);
// array (size=2)
0 => [email protected]
1 => [email protected]
So far so good. Then the array is added to the $mail
object:
$mail = JFactory::getMailer();
$mail->addRecipient($recipients);
I am using mailtrap.io to track the mailing and test where they are sent. The second email (to [email protected]) never gets sent. The first one does. So I have to assume there's a problem with how Joomla is handling the array of recipients. This is Joomla 3.3.6
Any ideas?