PHP: Send Email via cronjob and set amount of email send per mins

后端 未结 3 570
忘了有多久
忘了有多久 2021-01-26 11:12

i have a program which use to send group emails, i set a cornjob per mins for this program, and set execute per 2nd/min, and check if the now time is match to my defined schedu

3条回答
  •  情书的邮戳
    2021-01-26 12:15

    First of all. 10000 emails with 3 per minute will take over 2 days.

    Secondly, the best way to do this is to save the emails to database (to, title, body etc) and then create a script that sends out 3 emails and set the cronjob to run every minute.

    Also check out these questions.

    • Sending bulk email in PHP
    • Sending mass email using php
    • Best way to send 10,000+ emails with PEAR/Mail_Queue

提交回复
热议问题