简体   繁体   中英

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! or 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. It is part of the System.Net.Mail namespace.

You just need to be sure that you get all of the proper connection information.

+1 to Mitchel who beat me to it. Here's some relevant links:

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

Video on using MailMessage in asp.net:
http://www.asp.net/learn/videos/video-416.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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