Customer Service



   Frequently Asked Questions

....Domain Search:
  Website Hosting
  Co-location Services
Virus & Spam Control
Ecommerce Software
Other Software
  ITS Group Information Technology



Related Links

 Official Site

Email page
to a friend




Domain Registration

Virus & Spam Control

E-commerce Software

Why Co-locate? 

User Rating: (5/5)

 Read Testimonials

Website Hosting

Sending E-mail with CDONTS

Go Back

This example shows how to send an email with ASP. This is possible using CDO (Collaboration Data Objects), a COM library created to send email via SMTP protocol.

In order to run this example you must set the correct value for "from" and "to" properties of objCDO.

---------- SendMail.asp -------------------

<title> Here is the code for sending an email using ASP </title>


' declare a CDO object
dim objCDO

' create a CDO object
set objCDO = Server.CreateObject("CDONTS.NewMail")

' set the properties
objCDO.From = "youraccount@yourdomainname"
objCDO.To = "anotheraccount@domainname"
objCDO.Subject = "mail test"
objCDO.Body = "Hello this is a Test"

' send the email

set objCDO = Nothing

response.write ("Message successfully sent.")



Go Back  If you have any questions: or Phone 1-780-701-7282.



Copyright 1999-2008 ITS Group Information Technology. 1-780-701-7282