Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2009-05-13
6
481 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 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