简体   繁体   English

如何使用ASP.Net通过Yahoo!发送电子邮件 还是Hotmail?

[英]How can I use ASP.Net to send email through Yahoo! or Hotmail?

Is it possible to use ASP.Net to send email through Yahoo! 是否可以使用ASP.Net通过Yahoo!发送电子邮件? or Hotmail? 还是Hotmail? If so, how would I accomplish this? 如果是这样,我将如何实现?

You can send it just like you would with any other mail host. 您可以像发送任何其他邮件主机一样发送它。 Using the SMTP client class. 使用SMTP客户端类。 It is part of the System.Net.Mail namespace. 它是System.Net.Mail命名空间的一部分。

You just need to be sure that you get all of the proper connection information. 您只需要确保获得所有正确的连接信息即可。

+1 to Mitchel who beat me to it. 向击败我的米切尔+1。 Here's some relevant links: 以下是一些相关链接:

IMAP settings for Yahoo, Hotmail and Gmail: Yahoo,Hotmail和Gmail的IMAP设置:
http://www.emailaddressmanager.com/tips/mail-settings.html http://www.emailaddressmanager.com/tips/mail-settings.html

Video on using MailMessage in asp.net: 在asp.net中使用MailMessage的视频:
http://www.asp.net/learn/videos/video-416.aspx http://www.asp.net/learn/videos/video-416.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM