.

app settings in web.config

 In web.config:

<appSettings>
    <add key="ContactUsEmail" value="me@mysite.com"/>
</appSettings>

In your code:

 

using System.Configuration;

        private void SendEmail(string emailbody)
        {
                string V = (string)ConfigurationSettings.AppSettings["ConnectionInfo"];
        }

 

What's your thoughts on this?

*

Protected by WP Anti Spam