So I send out a batch email with something similar to the following code through a gmail account:
Code: Select all
// Swift Mailer GMAIL SMTP connection stuff up here (using ENC_TLS)
$recipients = new Swift_RecipientList();
$recipients->addTo('foo@theirdomain1.com');
$recipients->addTo('bar@theirdomain2.com');
$mailer->batchSend($message, $recipients, new Swift_Address('email@mydomain.com', 'Smith And Johnson Attorneys, LLC'));Now, about 10 minutes later, I'll receive an undeliverable message from the sender's mail server saying the message could not be delivered to Smith@mydomain.com. One time it also returned that it couldn't be delivered to Attorneys@mydomain.com.
Somehow I think it's trying to send another email to a portion of the name of the "from" company. In the headers that are returned by the mailer daemon, it shows all the proper recipients, but in the Cc: field it shows Cc: =20 (this does not appear in the gmail message headers). I'm not sure what that means, or if it means anything at all.
So, has anyone seen anything like this before or have an idea of what could be going wrong?
Quick update on my specs:
CentOS 5, PHP 5.2.3, SwiftMailer 3.2.1