Saturday, September 06, 2008

Asp.Net - How to send HTML mail ?

Code:


Dim mail As New MailMessage()

mail.To = "emailto"

mail.From = "emailfrom"

mail.Subject = "Test."

mail.BodyFormat = MailFormat.Html

mail.Body = "Test Message"

SmtpMail.SmtpServer = "yourserver"

SmtpMail.Send(mail)

0 comments:

2008

Back to TOP