将邮件发送到不同的客户对他们的生日 [英] Send mail to different customer on their birthday

查看:139
本文介绍了将邮件发送到不同的客户对他们的生日的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现有相关topic.However,也有一些区别,因为人是要求Ubuntu的服务器,但我使用的阿帕奇(XAMPP *的 的*最新的版本,所以还有什么方法让系统通过检查日期自动发送邮件?结果
它可以适用于一些日程安排发送呢?谢谢

我的脚本发送它,唯一的我需要的是如何安排送

编辑:
更简单,假定只有Windows是唯一的平台。 我可以做一些PHP脚本,并创建OS cron作业,让我的客户可以在我的系统安排他们的邮件,而不是在OS做的

第三方cron作业是很好的建议,但有限制(如果有什么自己的服务分解等...),我想一切都基于自己的系统上


解决方案

  1. 如果您的XAMPP是在Windows上,你可以使用 Windows的调度调用一个特定的脚本(PHP脚本在你的情况,preferably通过URL),检查所有用户的生日和他们发送邮件相应


  2. 如果您的XAMPP是在Linux / Unix / etc下,你可以使用的的cron的作业的,休息是一样的!


  3. 还有第三种方式,第三方调度或者说在线的cron ,这将远程调用脚本你(PHP页面)。


示例:

如果你正在做自己的操作系统的的cron的设置,你仍然可以让配置为系统中的人的电子邮件,而不是操作系统。

毕竟,一个cron所以通过U​​RL做一些事情反反复复,你的情况,它只是调用你的脚本。

现在关于时间设置,可以使CRON调用脚本每一个我们的,你的PHP脚本将检查适当的时间,并触发邮件!

I have found that there is related topic.However, there are some difference because the people is asking for ubuntu server but i am using the Apache (xampp*)* the latest version, so are there any method to let the system automatically send mail by checking the date ?
Can it applies to some schedule sending as well? thanks

I have the script for sending it , the only thing i need is how to schedule send.

Edit: Make it simpler , assuming only windows is the only platform. Can i do some php script and create the cron job in os , so that my client can schedule their mail in my system instead of doing it in the os?

3 rd party cron job is good suggestion but there is limitation (what if their service break down etc...) and i want everything is based on own system

解决方案

  1. If your xampp is on Windows, you can use windows-schedulers to call a particular script (PHP script in your case, preferably by an URL), which checks the birthdays of all the users and sends them mail accordingly.

  2. If your xampp is on Linux/Unix/etc, you can use cron-jobs, and rest is same!

  3. There is also a third way, a third-party scheduler or say online-cron, which will remotely call yours script (php-page).

Example:

If you are doing the cron-settings of OS yourself, you can still let the configure as to whom to email in your system, rather than OS.

After all, a cron so is to do something repeatedly, in your case, its just calling your scripts, by an URL.

Now regarding the time settings, you can make the CRON call your script every our, and you php script will check the appropriate time, and fire the mails!

这篇关于将邮件发送到不同的客户对他们的生日的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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