ISC   Cdonts
Home
Services
Hosting
Mystery Tour
Support
Internet 101
Customer Login
About ISC

 

 

CDONTS

To use CDONTS:

<%
' declare your object
Dim objMail

' create the CDONTS Object
Set objMail = Server.CreateObject("CDONTS.NewMail")

' Set your properties


objMail.From = "devasp@aol.com"
objMail.To = "someone@somewhere.com"
objMail.Subject = "This is a test Mail"
objMail.Importance=1
objMail.Host=Place your IP address here and put it inside quotation marks
objMail.Body = "This is the text of this test mail."

' Send your email
objMail.Send

' After the Send method, set your object to nothing
Set objMail = Nothing

' If you want to send another mail, you have to start again


%>
  
Properties of NewMail Object:
From A string value containing the email address of the sender: me@somewhere.com
To A string value containing the email address of the recipient: someone@somewhere.com.

Multiple addresses can be added by separating with ";"
Subject The subject line for the message.
Body A string value containing the body text of message.
Cc A string containing the email address of recipients who will receive a copy of current message.
Bcc A string containing the email address of recipients who will receive a blind copy of current message.
Importance This is an Integer value that represents the priority of message.
(for example High, Normal or Low)
BodyFormat An integer value which sets the text format of NewMail Object.
ObjMail.BodyFormat = 0 (HTML format)
ObjMail.BodyFormat = 1 (default Plain Text format)
MailFormat An integer value which sets the encoding of NewMail Object.
ObjMail.MailFormat = 0 (Mime format)
ObjMail.MailFormat = 1 (default Plain Text format)




Methods of NewMail Object:
AttachURL This method attach a file to current message and associate a URL with that attachment.
Send This method sends the message.

 

 

email:
Phone: (843) 832-6064

 

Proud member of:
HTML Writer's Guild Charleston Metro Chamber of Commerce

Copyright © 1999-2006 Internet Solutions of Charleston, all rights reserved
http://www.CharlestonSolutions.com