Page 1 of 1

Swift Mailer serious problem?

Posted: Tue Mar 11, 2008 8:09 pm
by EoN
Hi All,

I've just experienced something really strange.

I use Swift Mailer to send out emails on a live site, where clients pay to use the service to send to their own recipients.

It uses Swift_Plugin_Decorator and Swift_BatchMailer

This has worked for over 2-300 sends over the past 6 months or so. Now this time, for some reason the Decorator put the SAME values in EACH email, whereas it's supposed to use a unique value PER recipient (which normally works fine). What's going on here? is this a bug? If so, is it a known bug? is there any fix for this? I'm in 'damage control' mode - so sorry if I'm sounding a bit frantic!

Any help would be greatly appreciated.

Regards,
EoN

Re: Swift Mailer serious problem?

Posted: Tue Mar 11, 2008 8:31 pm
by Chris Corbyn
It's a known bug which has been fixed in v4, and there's a fix posted in another thread here. The problem arises when an error occurs during the sending of a particular address and the message doesn't get restored to its original state so further replacements fail.

Lemme dig up that fix...

Re: Swift Mailer serious problem?

Posted: Tue Mar 11, 2008 8:33 pm
by Chris Corbyn

Re: Swift Mailer serious problem?

Posted: Tue Mar 11, 2008 8:39 pm
by EoN
Ok I'll have a look into implementing this right away. Thanks Chris, for your prompt (as usual) response.

Re: Swift Mailer serious problem?

Posted: Tue Mar 11, 2008 8:46 pm
by Chris Corbyn
I would have fixed it in the repository but since v4 was supposed to have been out last month I didn't bother.... there are a few things holding back the new release currently which is partly frustrating and partly exciting; all said, all of the bugs which are outstanding in v3 are fixed in v4.

Re: Swift Mailer serious problem?

Posted: Thu Mar 13, 2008 9:11 pm
by ricgomez
I'm having a similar problem.
I need to send 700 emails and I'm using the send function.
However, sometimes the message is send to a destination address with the data of another recipient. I'm not using decorator. I just make the personalized body for each recipient and then I make $message->attach(new Swift_Message_Part($body));

However, as I stated before, the messages sometimes are delivered to the stated recipient but with the info of another recipient.

How can I solve this ?

Re: Swift Mailer serious problem?

Posted: Fri Mar 14, 2008 12:27 am
by Chris Corbyn
I don't intend to repeat myself, please read this thread again, I already posted the link ;)