I am using a web form that is sending out mails. It would be nice if I could write the information necessary for sending mails to some configuration file. For example the ip/hostname of the smtp server etc. Is there any way to do this? Where do you store this
information?
You should have a web.config file in your application directory, this is the equivalent of an INI file. Add the appSettings node as you see below (case sensitive) and you can then store as many name/value pairs as you like e.g. ... ... To access the above value
in code you could use the following: system.Configuration.ConfigurationSettings.AppSettings("Email_IP")
pisschrist
Member
340 Points
68 Posts
Mail Configuration?
Nov 13, 2003 08:30 AM|LINK
ophiuchus_O
Member
70 Points
14 Posts
Re: Mail Configuration?
Nov 13, 2003 10:10 AM|LINK
pisschrist
Member
340 Points
68 Posts
Re: Mail Configuration?
Nov 13, 2003 03:20 PM|LINK