send mails from asp.net pages

M

MS News \(MS ILM\)

Web.Mail.SmtpServer = "smtp.smtpmailsserverdomain.com";
MailMessage mail = new MailMessage();
mail.To = (e-mail address removed);
mail.From = (e-mail address removed);
mail.Subject = "Testing eMail";
mail.Body = "<h1>Testing ASP.NET mail</h1>";
SmtpMail.Send(mail);
 
K

Ken Cox [Microsoft MVP]

http://aspalliance.com/andrewmooney/default.aspx?article=13

With this sample you can send an email from an ASP.NET web page. Just fill in
the From, To, Server, Subject, and Message on the form and click submit.
Result #2 Email with ASP.NET

http://aspalliance.com/jnuckolls/articles/ASPemail/default.aspx
Here you will learn different ways to enable email functionality into your
ASP.NET web pages.
Result #3 Sending Emails With ASP.NET

http://aspalliance.com/hrmalik/articles/2002/200206/20020601.aspx

how can I send mails from asp.net pages?
 

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,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top