简体   繁体   English

发送电子邮件:Cron工作

[英]Send emails : Cron job

in my project, i need to send emails to the registered members of the site once every month. 在我的项目中,我需要每月一次向该站点的注册成员发送电子邮件。 For this, i have setup a cron job on cpanel and it is working fine. 为此,我在cpanel上设置了cron作业,并且工作正常。

Whats my doubt is that, tomorrow the number of users in the site will increase and there would be thousands of users. 我的怀疑是,明天该站点中的用户数量将增加,并且将有成千上万的用户。 Then does the cron job work as usual ? 然后,cron工作是否照常工作?

I want to know, whether the cron can handle the task of sending emails to thousands of users at a time. 我想知道,cron是否可以处理一次向成千上万的用户发送电子邮件的任务。

Please help. 请帮忙。

Be careful. 小心。 Most servers are set to only send a set amount of emails at a time, and the results of trying to send more than this at once can be catastrophic (speaking from experience). 大多数服务器被设置为一次仅发送一定数量的电子邮件,尝试一次发送更多电子邮件的结果可能是灾难性的(从经验上来讲)。

I would pause the send for now, and speak to your hosting company to find out the best way to proceed. 我现在暂时暂停发送,并与您的托管公司联系,以找出继续进行的最佳方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM