Swift_Plugin_AntiFlood and batchSend()

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
audrey
Forum Newbie
Posts: 12
Joined: Sat Mar 03, 2007 2:19 pm

Swift_Plugin_AntiFlood and batchSend()

Post by audrey »

Does using batchSend() remove the benfits or otherwise cause problems for the the anti-flood plugin?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Nope, it should work exactly the same. batchSend() is basically a big foreach() :)
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

And what does the anti-flood plugin do to the batchSend ?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Nothing, AntiFlood just disconnects, sleep()'s and reconnects every so often. Basically Swift's event dispatching layer informs the plugin of all emails sent irregardless of whether batchSend() was used or send() was used. It's all based around events, not the implementation details of how the library is used :)
Post Reply