从具有多个 Web 服务器的集中式服务器发送电子邮件
我正在构建一个 ASP.NET MVC3 应用程序,它将在几个 Web 服务器上运行。我不想让每个服务器/应用程序根据请求发送自己的电子邮件(Asnyc),而是想利用 MSMQ 之类的东西并将消息发送到电子邮件服务器,该服务器将接收消息并发送电子邮件。
我知道如何使用控制台应用程序、Windows 服务和 MSMQ 来实现此目的,但正在向任何成功/有实现类似功能的人寻求一些指导。任何指导、经验、技术、博客文章将不胜感激。
I am building a ASP.NET MVC3 application that will be running on a couple web servers. Instead of each server/app sending its own emails(Asnyc) per request, I would like to leverage something like MSMQ and send messages to an email server that would pick up the messages and send an email.
I have an idea of how to do this with a console app, windows service and MSMQ but was looking for some direction from anyone who has had success/experience implementing something similar. Any guidance, experience, technology, blog posts would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,您只是在寻求电子邮件中继服务。您可以使用专用的 IIS 来为您完成此操作。 IIS SMTP 具有内置的排队邮件中继功能。您最好希望将此 IIS SMTP 服务集群化最多 1 分钟。可靠性。
关于链接文章中的考虑因素,我看不出等待向 SMTP 服务器发送消息的用户页面进程与向 MSMQ 发送消息的用户页面进程之间的区别。
我相信,当谈到冗余时,您会发现设置群集 SMTP 服务比设置群集 MSMQ 容易得多。
From what I see you're simply after an e-mail relay service. You could just use a dedicated IIS to do this for you. IIS SMTP has builtin queued mail relay functionallity. Preferably you want to cluster this IIS SMTP service for max. reliability.
Regarding the consideration in the article linked I can't see the difference between the users page process waiting for sending a message to an SMTP server and sending a message to a MSMQ.
I believe when it come to redundancy you'll find it much easier to set up a clustered SMTP service than clustered MSMQ.