如何通过Php / MySQL发送大量(10,000+)以上的电子邮件? [关闭]

Currently i have a client that wants to send numerous amounts of emails (10,000+) to their clients.. How is this possible?? Any help or advise would be appreciated..

Thanks :)

You can create a Mail Queue, look at for mail queues at PEAR packages, although mail servers limit how many mails you can send per hour/minute/day.

I assume that your problem is that the script is timing out after a certain amount of time. Couple of things you can do:

  1. Look at max_execution_time in your php.ini and boost it.
  2. Run your script from CLI, as CLI scripts are not affected by max_execution_time
  3. Use a Mail Queue as GeoPhoenix suggests.
  4. Split the set into batches and reload (or ajax) the page with a batch itterator.