Windows azure Worker Role每周电子邮件发送

时间:2013-01-28 12:59:10

标签: c# azure azure-storage azure-web-roles azure-worker-roles

如何使用Windows Azure应用程序中的工作者角色发送每周电子邮件报告

3 个答案:

答案 0 :(得分:1)

正确,如果您使用移动服务,则可以非常轻松地将某些脚本设置为以固定的时间间隔运行。肯定支持一次/周的间隔。有关详细信息,请访问:https://www.windowsazure.com/en-us/develop/mobile/tutorials/schedule-backend-tasks/

但是,如果您已在云服务上运行应用程序,则可能需要查看在Windows Azure存储中使用Scheduler加载项。 SendGrid可能是最简单的电子邮件选项,因为您也可以通过商店将其添加到您的订阅中 有关使用带有Windows Azure的SendGrid发送电子邮件的文档,请访问:https://www.windowsazure.com/en-us/develop/net/how-to-guides/sendgrid-email-service/ 有关Scheduler加载项的详细信息,请访问:https://www.windowsazure.com/en-us/store/service/?name=scheduler
有关SendGrid的详细信息,包括Windows Azure客户的免费优惠,请访问:https://www.windowsazure.com/en-us/store/service/?name=sendgrid

答案 1 :(得分:0)

SendGrid是一种易于使用的服务,用于发送电子邮件,如果您在角色中没有其他方式。

答案 2 :(得分:0)

我建议您使用Windows Azure移动服务,而不是工作者角色。我建议使用它的原因是因为它本身支持任务调度。您可以在此处详细了解:http://www.windowsazure.com/en-us/develop/mobile/tutorials/schedule-backend-tasks/。另请参阅此处使用带有Windows Azure移动服务的发送网格发送电子邮件的示例:http://www.windowsazure.com/en-us/develop/mobile/tutorials/send-email-with-sendgrid/。您只需将这两个组合在一起就可以每周发送一封电子邮件。

相关问题