Switch to full style
ASP/ASP.net examples
Post a reply

send email from ASP using CDOSYS

Sat Jul 14, 2012 7:33 pm

In this snippet we show how to send an email from your web application using CDOsys. Following are code examples:

Code:
<%
Set myEmail=CreateObject("CDO.Message")
myEmail.Subject="Email test using CDO"
myEmail.From="codemilesX@codemiles.com"
myEmail.To="codemilesX@codemiles.com"
myEmail.Bcc="codemilesX@codemiles.com"
myEmail.CC=" codemilesX@codemiles.com"
myEmail.TextBody="Dear Friend, this is a test."
myEmail.Send
set myEmail
=nothing
%>  

You can also send your email body as HTML
Code:
To send HTML mail we can configure like this
<% 
Set myEmail =CreateObject("CDO.Message")
myEmail.Subject="HTML Email test using CDO "
myEmail.From="codemilesX@codemiles.com "
myEmail.To="codemilesX@codemiles.com"
myEmail.HtmlBody="<h1>Dear All,</h1><br> this is a test email<br><h2> Using ASP script</h2>"
plusMail.Send
set plusMail
=nothing
%>  




Post a reply
  Related Posts  to : send email from ASP using CDOSYS
 Send an email in asp.net     -  
 Send email in asp     -  
 Send email link example.     -  
 Send Email from a PHP Script Example     -  
 send confirmation link to email     -  
 Send Email Recipient CC,BCC MimeMultipart, Attachments     -  
 i want to send conformation email with user details on the     -  
 email through JAVA program     -  
 validate email address in asp     -  

Topic Tags

ASP Email