Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML
Asp > Code Snippets sample source codes
how to send an HTML formatted e-mail
how to send an HTML formatted e-mail <% Dim objCdonts , strHTML Set objCdonts = Server.CreateObject("CDONTS.NewMail") 'now we will produce the basis of our email strHTML = strHTML & "
sample html email</title></head>" strHTML = strHTML & "
" strHTML = strHTML & "
some text to display</p>" strHTML = strHTML & "
" strHTML = strHTML & "
asp site</a>" strHTML = strHTML & "</body></html>" 'your address objCdonts.From ="youraddress@email.com" 'recipients address objCdonts.To = "someones@email.com" 'what is the email about objCdonts.Subject ="an HTML email example" 'these next lines are vital for HTML formatted mail objCdonts.BodyFormat = 0 objCdonts.MailFormat = 0 'your message objCdonts.Body = strHTML 'send that email objCdonts.Send Set objCdonts = Nothing %>
Privacy Policy
|
Link to Us
|
Links