Sending Mail from ASP with CDONTS.NewMail Object

Tutorials Shared by the Internet Community

Advertisements


Synopsis

The NewMail object gives you the ability to send a message within an ASP page with only few lines of code.

Statistics

  • Total Hits - 22142

  • Total Votes - 100 votes

  • Vote Up - 43 votes

  • Vote Down - 57 votes

  • Domain - www.devasp.com

  • Category - ASP/Email Systems

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-06 09:49:28

Description

The NewMail object gives you the ability to send a message within an ASP page with only few lines of code. The syntax for sending mail with the NewMail object of CDONTS is as follows:

objNewMail.Send( [From] [, To] [, Subject] [, Body] )

You can create the instance of NewMail Object with the following code.

<%
Dim objNewMail
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
%> ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements