自动邮件发送在PHP的特定日期 [英] Automatic Mail Sending on specific Dates in PHP

查看:141
本文介绍了自动邮件发送在PHP的特定日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的数据库中有一些邮件ID。我必须在我在数据库中提到的某些特定日期自动发送邮件到这些邮件ID。如何在php中执行此操作。

解决方案

这取决于您的服务器类型。如果您使用linux,您可以使用cronjobs在特定时间对特定php文件的执行进行编程。
如果你被托管,你的主机可能会在他们的cpanel中提供一个cronjob菜单,否则你必须得到一个更好的托管计划。或至少访问crontab文件,您可以编程不同的Cronjobs。



使用CRON作业执行PHP脚本


I am having some mail ids in my database. I have to send mail to those mail ids automatically on some specific dates that i have mentioned in my database.How to do that in php.

解决方案

It depends on your server type. If you use linux you can use cronjobs to program the execution of a specific php file at a certain time. If you are hosted, your host may offer a cronjob menu in their cpanel, else you would have to get a better hosting plan that offer that. Or at least access to crontab file where you program the different Cronjobs.

Executing a PHP script with a CRON Job

这篇关于自动邮件发送在PHP的特定日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆