Total members 11890 |It is currently Thu Apr 18, 2024 9:41 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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="[email protected]"
myEmail.To="[email protected]"
myEmail.Bcc="[email protected]"
myEmail.CC=[email protected]"
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="[email protected] "
myEmail.To="[email protected]"
myEmail.HtmlBody="<h1>Dear All,</h1><br> this is a test email<br><h2> Using ASP script</h2>"
plusMail.Send
set plusMail
=nothing
%>  




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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     -  
 Reading email in Python     -  
 read email inbox ASP     -  



Topic Tags

ASP Email






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com