Strange Issue with Undeliverable Messages

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
iricketson
Forum Newbie
Posts: 11
Joined: Tue May 08, 2007 3:04 pm

Strange Issue with Undeliverable Messages

Post by iricketson »

I'm having a strange issue that I can't seem to tackle. Maybe someone can shed some light on it.

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'));
When I check the sent messages, everything seems to go through properly with no issues. The email is received by both of the recipients and in the sent items in gmail, I see the proper email as expected with their proper email addresses in the "To" field.

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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Which connection are you using? Then please post code and (preferably) PM me one of the bounced messages (in full source with all headers).
iricketson
Forum Newbie
Posts: 11
Joined: Tue May 08, 2007 3:04 pm

Post by iricketson »

After further investigation, it seems that this may only occur if I add read receipt request into the message.

Code: Select all

$message->requestReadReceipt(new Swift_Address('email@mydomain.com', 'Smith And Johnson Attorneys, LLC'));
I think If I simply add the email address instead of the Swift_Address object it works properly, but I am trying to double check and figure it out right now. I'll keep you posted with my results.
Post Reply