Connection Rotator on 3.3.3

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
everisk
Forum Newbie
Posts: 11
Joined: Sat Mar 21, 2009 9:32 am

Connection Rotator on 3.3.3

Post by everisk »

Hello,

Supposed I have 3 connections, is there any way to know which connection Swift is using to send email right now?

My goal is to have a different reply-to address for each connection therefore I'd need to know which connection the script is using right now in order to set an appropriate header.

Thanks!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Connection Rotator on 3.3.3

Post by Chris Corbyn »

I'm afraid this is not exposed as part of the interface for the rotator connection.
everisk
Forum Newbie
Posts: 11
Joined: Sat Mar 21, 2009 9:32 am

Re: Connection Rotator on 3.3.3

Post by everisk »

Ah thanks, Chris.

So it seems possible, anyone could help me with this? Or any alternatives? Is it possible to set up multiple connections and tell Swift to use which connection?

Any help or directions will be greatly appreciated. I'm really stuck and dont know much about OOP. Thank you in advance.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Connection Rotator on 3.3.3

Post by Chris Corbyn »

If you upgrade to version 4 it would be very easy to write a hot-swappable transport. Transports in version 4 are much simpler than the connections in version 3.
Post Reply