想给公司客人发电子生日贺卡,生日一到,贺卡自动发出去。客人的生日都记录在数据库中。
谢谢!
Windows 有一个scheduler功能。订好时间,然后运行一个script。
script可以从数据库取出数据并生成邮件,发送。
还有一个JAVA的程序叫quartz,也是这种定时的应用。你可以从GOOGLE搜索到。
如果老板觉得有电脑就够了,不需要楼主了咋办?:lol:
白雪飘飘 写道: |
想给公司客人发电子生日贺卡,生日一到,贺卡自动发出去。客人的生日都记录在数据库中。
谢谢!
|
If you are using SQL Server, you can set a schedule job and simply use "Database Mail" to send email. There is a system stored procedure called "sp_send_dbmail", allows you send email by given receipentes, subjects, etc. Do a search on your SQL Server book online or google it.
Windows下用计划任务,linux下用cron,需要自己写一段脚本来发送邮件