ASP.NET (35) SQL (25) JAVASCRIPT (24) HTML (14) STYLE SHEET (6) ASP (4) SCRIPT (1)

Search me out HERE!!

SENDING HTML MAIL IN ASP USING "CDONTS.NewMail"


<% dim html html = "Test Mail in ASP"
html = html & "Your HTML Body.."

Set Mail=Server.CreateObject("CDONTS.NewMail")
Mail.To="test@asp.com" 'Mail address to send.
Mail.From="test@asp.com" 'From Mail address.
Mail.Subject="Mail Test in ASP"
Mail.BodyFormat = 0
Mail.MailFormat = 0
Mail.Body=html
Mail.Send
Set Mail=nothing
%>


NOTE:Above is the code to send HTML mail in ASP. Variable html contains your html code which you need to send. Here in html variable you can write any html code, which you need to send in mail.

No comments:

Post a Comment