Name

Send (NewMail Object) — objNewMail .Send strFrom [, strTo ] [, strSubject ] [, strBody ] _ [, intImportance ]

Synopsis

Sends the current message to its recipients.

Parameters

strFrom

A string value containing the full messaging address of the message's sender. You cannot have semicolons in this string, nor can you specify multiple senders.

strTo

A string value containing the message's primary recipients. You can have multiple recipient addresses in this string, but each must be separated from the last using a semicolon.

strSubject

A string value containing the subject line for the message.

strBody

A string value containing the body content for the message.

intImportance

An integer value corresponding to the priority of the message. The possible values for this parameter are as follows:

CdoLow (0)

The importance is low. Schedule delivery during off-hours or times of low system use.

CdoNormal (1)

The importance is normal. Schedule delivery during regular delivery schedules for normal messages.

CdoHigh (2)

The importance is high. Attempt to deliver immediately.

Example

<%

' Dimension local variables.
Dim objNewMail
Dim strRecipList

' Instantiate a NewMail object.
Set objNewMail = Server.CreateObject("CDONTS.NewMail")

 ' Set the body string for the message.
objNewMail.Body = _
   "Wow, this message takes just a few lines of code."


' Send the message.
objNewMail.Send "me@here.com","you@there.com", _
   "This is the subject",_
   "This is the body of the message",cdoHigh

%>

Notes

The Send method ...

Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.