SMTP mail in VS 2005

  • Thread starter Thread starter Chris Wagner
  • Start date Start date
C

Chris Wagner

Can I use SMTP in VS 2005 to send mail through a SMTP server which requires
logon information? I know I can't do that with VS 2003. Thanks
 
Hi,

Actually you can do that with .NET 1.1 as well.

http://weblogs.asp.net/gad/archive/2003/11/02/35288.aspx
http://asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=268037

With .NET 2.0 the System.Web.Mail namespace has not changed, means that
SmtpMail class hasn't changed, but there has been added SmtpMailSection
class (System.Web.Configuration namespace) to configure ASP.NET email
settings e.g you can configure email sending in config files and it includes
giving the logon details similarly as is programmatically in previous posts.
Here is about the new SmtpMailSection class.

http://lab.msdn.microsoft.com/libra..._System_Web_Configuration_SmtpMailSection.asp

certainly if you code the email client yourself with network APIs or use a
commercial components, you can get whatever you want.
 
Thanks very much. I read the VB.NET core reference and it said it can't be
done with .NET 1.1.
This is a good news.
 
Back
Top