使用 System.Net.Mail 发送邮件
我需要为客户端构建一个 .net 3.5 网页,该网页将自动向用户发送电子邮件,从客户数据库中获取地址。
我可以使用 system.net.mail 使内部邮件正常工作,但是如果客户的电子邮件服务是通过第三方而不是拥有自己的交换服务器,谁能告诉我这是否合适?
我听说最好的方法是使用他的供应商 smtp 中继服务,任何人都可以向我指出这方面的任何示例,甚至是所涉及内容的想法吗?
谢谢
DD
I have a requirement to build a .net 3.5 webpage for a client which will automatically email users, taking addresses from a customer database.
I can get this working fine for internal mail using the system.net.mail, but can anyone tell me if this is suitable if the clients email service is through a 3rd party, rather than having their own exchange server?
I heard the best way to go is using his suppliers smtp relay service, can anyone point me in the direction of any examples of this, or even an idea of whats involved?
thanks
DD
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
System.Net.Mail 会为您完成此操作。确保使用 System.Net.Credentials 提供代理身份验证和 SMTP 服务器身份验证,并且一切都应该正常工作。
有关详细信息,请访问 msdn 站点。
System.Net.Mail does this for you. Make sure you use the System.Net.Credentials to provide both the proxy authentication and the SMTP server authentication and all should work fine.
for more information look up the msdn site.