0

I want to send reminder mails from my website, hosted were I live (sweden).

Which is more "good-practise" and/or reliable: Crontab or a php code sent when a user visits the website and (without him/her needing to know) run the php code that sends the mail?

4

1 回答 1

1

您是否正在向自己发送提醒邮件?或者您是否正在邮寄非活动用户或类似用户?

cronjob 可以解决问题。您可以设置一个脚本每周运行一次以检查用户不活动情况,或者如果您通过电子邮件向自己发送提醒,则每 5 分钟运行一次。

用户触发的脚本对于自动化过程来说不是一个好的选择。

于 2013-06-17T22:50:06.343 回答