This works with a single email address, but not with more than 1.
I've tried constructing the string of emails different ways (with and without quotes), but it hits the error just the same.
Code: Select all
$emailString = "'xyz1@comcast.net','xyz2@comcast.net'";Code: Select all
$emailString = "xyz1@comcast.net,xyz2@comcast.net";Code: Select all
# Create the message
$emailMessage = Swift_Message::newInstance($subjectLine)
->setFrom(array($SwiftMemberSupportEmail => $SwiftMemberSupportName))
->setTo(array($emailString))
->setBody($body)
;
# Now check if Swift actually sends it (as a batch)
if (!$result2 = $mailer->batchSend($emailMessage))Any suggestions?
Thank you.