Customer Service

1-780-701-7282

spacer

   Frequently Asked Questions

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

  Specials        


 

Related Links

 Official Site

Email page
to a friend

 

 

HOT LINKS

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 -------------------

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

<%

' 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
objCDO.Send

set objCDO = Nothing

response.write ("Message successfully sent.")

%>

</BODY>
</HTML>

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

 

 

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