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


     Best credit cards | Hosting web | Life Insurance | Cheap Flights | Montana Music
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp