Solved

how can i configure asp.net 3.5 to use a hotmail account for sending mails

Posted on 2009-05-13
6
480 Views
Last Modified: 2013-11-30
i want to configure my web.config that i can send email though a hotmail acount.
I get the following error message:
[SmtpException: Für den SMTP-Server ist eine sichere Verbindung erforderlich, oder der Client wurde nicht authentifiziert. Die Serverantwort war: 5.7.0 Must issue a STARTTLS command first]
which means: a secure connection is required for SMTP-Server

there is no feature to select secure connection in WEB/ASP.NET-Configuration
0
Comment
  • 3
  • 3
6 Comments
 
LVL 10

Expert Comment

by:MaxOvrdrv2
ID: 24374992
this should help you out... it tells you exactly how to do what you need to do:

http://www.developerfusion.com/code/2453/send-receive-emails-using-winsock-and-pop3/
0
 

Author Comment

by:ernst.kugler@gmail.com
ID: 24376062
I know, how to send mail programmaticly.

I look for a way to modify the web.config that I can send with the web.config settings.

Is there a seeting for the <mailSettings> node for ssl specification and the port?
0
 
LVL 10

Expert Comment

by:MaxOvrdrv2
ID: 24376164
why don't you just use a key for each then... and then call that using the AppSettings("keyname")... that way your addresses and ports are all in the web config and you just call them in the code... make a change of address in the key in the web config and they all use the new ports and addresses.
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

by:ernst.kugler@gmail.com
ID: 24376249
I do not understand..
0
 

Author Comment

by:ernst.kugler@gmail.com
ID: 24433155
where can I find detailled information about the mail part of the webconfig file?
0
 
LVL 10

Accepted Solution

by:
MaxOvrdrv2 earned 250 total points
ID: 24433456
here is how you access the webconfig mailsettings programatically:
Dim webConfigFile As System.Configuration.Configuration = WebConfigurationManager.OpenWebConfiguration("~/web.config")4            
 
Dim mailSettings As MailSettingsSectionGroup = webConfigFile.GetSectionGroup("system.net/mailSettings")

Open in new window

0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
There was an incident about the POP3 issue for the double read receipts and delivery receipts in Exchange 2013.  There was huge research been done and found solution for the duplicate mails. Especially when the user gets  duplicate mails.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question