This blog is specially design to help out various queries related with ASP.NET, PHP, ASP, HTML, SQL SERVER, CSS, JavaScript...
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment