# Most efficient to mass mail - php

**URL:** <https://forum.kirupa.com/t/most-efficient-to-mass-mail-php/327257>\
**Category:** programming\
**Created:** [February 16, 2012, 4:33pm UTC](https://forum.kirupa.com/t/most-efficient-to-mass-mail-php/327257 "2012-02-16T16:33:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Post date:** [February 16, 2012, 4:33pm UTC](https://forum.kirupa.com/t/most-efficient-to-mass-mail-php/327257/1 "2012-02-16T16:33:52Z")

</div>

HI there,  
I have built a newsletter for personal use.

what i currently do is that i mail 100 emails per batch then sleep 5 min.  
Therefore the max to send in one go is a 1000. i have cron jobs that kicks in every 15min. I mark my newsletter as being active so other cron cannot disturb the current one as (as 10 batches will take approx 50 min).

I wanted to know if i am on the right track. as i also need to keep my db connection open so it is a constant ping to db every second.

I dont know whether there is a better method for that, as sometimes my newsletter break and i think it is on the db connection!

If anybody can help me in that matter i will really appreciate it.

Thanks a lot.

Regards,

Jerome
