Solved

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

Posted on 2009-05-13
6
477 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello Friends, My friends and relatives always ask me how to delete all the various types of emails at once in our g-mail  or windows live account.  So I researched this topic to find a unique solution to this query.  Here it is for those who do …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now