Search DaTutorials:  
HOME
ASP Tutorials
Introduction
Reference
   Building ASP Pages
   Built-in Objects
Tutorials

Send email

Description:


How to send email using ASP , VB Script and the CDO(Collaboration Data Objects).

Code:

<html> <body> <%
Set objMail=CreateObject("CDO.Message")
objMail.Subject="Hello"
objMail.From="fromemail@domain.com"
objMail.To="email1@anotherdomain.com"
objMail.Bcc="email2@someotherdomain.com"
objMail.Cc="email3@ddoommaaiinn.com"
objMail.TextBody="Message text goes here."
objMail.Send
%> </body> </html>

Keywords:

VBScript: CreateObject


     Free Advertising | Advertising | Web Advertising | Online Advertising | Free Advertising
Home    Link To Us    Ad With Us    Contact Us    Tell A Friend    Affiliates    Blog    Stock Photos