July 2000
Intermediate to advanced
492 pages
14h 53m
English
To —
objNewMail
.
To =
strRecipListString
A string value that contains a list of recipients who will receive the current message.
strRecipListString
A string containing one or more recipient email addresses separated
by semicolons (;)
The following example demonstrates how to add a recipient to the To list for the current message:
<%
' Dimension local variables.
Dim objNewMail
Dim strRecipList
' Instantiate a NewMail object.
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
' Set the Newail object's To property to the following
' email addresses: (1) tom@execucom.com,
' (2) billw@firebird.com, and (3) helen@zoologyzine.com.
strRecipList = _
"tom@execucom.com;billw@firebird.com;helen@zoologyzine.com"
objNewMail.To = strRecipList
' Set the body string for the message.
objNewMail.Body = _
"Wow, this message takes just a few lines of code."
' Send the message. For details about the Send method,
' see the section on this chapter.
objNewMail.Send , , "This is the subject",,cdoHigh
%>As the example shows, the string assigned to the To property can contain a single email address or multiple email addresses separated by semicolons.
Read now
Unlock full access