ConfigurationManager question ASP.NET 2.0

M

Mark

Hi, I used the Web site Admin tool to specify the Mail Server settings and
now in my web.config I have the following entry


<system.net>

<mailSettings>

<smtp [email protected]>

<network host="server.myaddress.com" password="" userName="" />

</smtp>

</mailSettings>

</system.net>



My question is how do I access the email server information from code
behind?

I want to be able to send an email using this information from inside a
function

TIA
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top