Swift Mailer serious problem?

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
EoN
Forum Newbie
Posts: 22
Joined: Thu Oct 11, 2007 5:57 am

Swift Mailer serious problem?

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

Re: Swift Mailer serious problem?

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

Re: Swift Mailer serious problem?

Post by Chris Corbyn »

EoN
Forum Newbie
Posts: 22
Joined: Thu Oct 11, 2007 5:57 am

Re: Swift Mailer serious problem?

Post by EoN »

Ok I'll have a look into implementing this right away. Thanks Chris, for your prompt (as usual) response.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Swift Mailer serious problem?

Post 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.
ricgomez
Forum Newbie
Posts: 1
Joined: Thu Mar 13, 2008 9:00 pm

Re: Swift Mailer serious problem?

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

Re: Swift Mailer serious problem?

Post by Chris Corbyn »

I don't intend to repeat myself, please read this thread again, I already posted the link ;)
Post Reply