Link to home
Start Free TrialLog in
Avatar of ernst.kugler@gmail.com
ernst.kugler@gmail.com

asked on

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

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
Avatar of MaxOvrdrv2
MaxOvrdrv2

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/
Avatar of ernst.kugler@gmail.com

ASKER

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?
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.
I do not understand..
where can I find detailled information about the mail part of the webconfig file?
ASKER CERTIFIED SOLUTION
Avatar of MaxOvrdrv2
MaxOvrdrv2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial