ASP.NET Send SMTP E-mail - No password in Web.Config
Posted on 2008-10-29
I'm using ASP.NET 2.0, VB code to send an e-mail to several addresses. The e-mail is coming from whatever e-mail address the online user specifies in the txtEmail texbox. Its goes to one of 3 e-mail addresses based on a radio button choice. I'm using System.Net.Mail, but it wants the SMTP relay server info in the web.config file like:
I don't want all this information to be online in the web.config file. If someone gets into the system, they have access to it. Specifically how can I do this so I don't a user/password to send e-mail? Please help.