tags:

views:

19

answers:

3

Hello.

I would like to know can i send an email with aspx files.

i know that in php there is a mail() command to send emails but i couldn't find the one for aspx.

+1  A: 

Yes, use System.Net.Mail to send mail. Note that you need to have an SMPT server available.

Christian Nesmark
i get the following error: Compiler Error Message: BC30112: 'System.Net.Mail' is a namespace and cannot be used as an expression.
ufk
Yes, that is correct. System.Net.Mail is a namespace, and if you follow the link to http://msdn.microsoft.com/en-us/library/system.net.mail.aspx, you can read about how to use the classes provided for you in that namespace to send mail from ASP.NET.
Christian Nesmark
+1  A: 

Sure! there is great article in there

Zuuum
+1  A: 

Use system.net.mail and define your smtp server and port in the web.config for added security

EvanGWatkins