back to notes

batch sending email

$swift = new Swift(new Swift_Connection_SMTP('localhost'), 'DOMAIN');

/* 100 mails per batch with a 60 second pause between batches */

$swift->attachPlugin(new Swift_Plugin_AntiFlood(100, 60), 'anti-flood');

set_time_limit(0);
ignore_user_abort();

flush();


last updated october 2010