What's the best approach to sending email to hundreds of recipients from a Zend Framework application?

前端 未结 8 1068
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 08:44

I\'m trying to implement a mailing list system for my application. I\'m currently using Zend_Mail_Transport_Smtp(\'localhost\') as my transport, looping through

8条回答
  •  醉话见心
    2020-12-29 09:19

    From the PHP.net Documentation.

    Note: It is worth noting that the mail() function is not suitable for larger volumes of email in a loop. This function opens and closes an SMTP socket for each email, which is not very efficient.
    For the sending of large amounts of email, see the » PEAR::Mail, and » PEAR::Mail_Queue packages.

    The Zend Mail class is probably pretty good (most of Zend's stuff is good) But if you want other options. Here they are.

提交回复
热议问题