Sending Email

D

Daniel Groh

Hi, How do I send email with properties stored in my web.config ? Does
someone has any example ? How should the web.config be ? Wich statements ?

I don't find any examble in Internet, can someone please help me ?

Thanks in Advance
 
G

Guest

Hi,

Your Config
=========
<configuration>
<appSettings>
<add key="EmailServerName" value="mail.YourDomain.com"/>
</appSettings>

<system.web>
<customErrors mode="Off" />
</system.web>
</configuration>


Your code behind
=============
Dim MailSarver As String =
ConfigurationSettings.AppSettings("EmailServerName")


Also take a look @ http://www.4guysfromrolla.com/webtech/080801-1.shtml

HTH
 

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
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top