PHP: Sending huge quantity of emails in batch

后端 未结 4 505
感情败类
感情败类 2021-01-02 21:53

Putting aside the disdain from junk marketing I need to send around 15,000 emails to customers. My coworker has tried to send them through php mail loop but obviously it get

4条回答
  •  -上瘾入骨i
    2021-01-02 22:29

    I've used PEAR's Mail_Queue to queue up 200,000+ mails at a time. Populating a database is easy and quick, even with customised content, and then a fairly simple script sends around 250 a time - if the load average isn't too high. Then it loops around and sends the next batch.

    You won't send them any faster than is usually possible, but it will do it without any problems.

    The tutorial gives you almost everything you need - just loop around th 'send_messages.php' script (from the command line is better) until the database queue is empty.

提交回复
热议问题