自动随机邮件生成 [英] Auto Random Mail Generation

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

问题描述

亲爱的朋友们,



我在网页上创建了一个内容,并通过邮件向少数用户生成该内容。

现在我需要每周一次,每次一次地推送邮件。

Dear Friends,

I have created a content in the webpage and generating that content in mail to few users.
Now i need to push that mail ramdomly weekly once and at any time.

推荐答案

这应该很简单:每个用户随机生成推送事件应该发生的时间戳。

然后,您的程序会定期检查时间戳是否已过,电子邮件尚未发送。如果两个条件都满足,那么它可以发送电子邮件(并将其标记为已发送)。
That's should be simple: for each user generate randomly the timestamp at which the push event should happen.
Then your program periodically could check if the timestamp is elapsed AND the email has not yet been sent. If both conditions are met then it could send the email (and mark it as 'sent').


这篇关于自动随机邮件生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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