July 2000
Intermediate to advanced
492 pages
14h 53m
English
Bcc —
objNewMail
.Bcc = strBCCRecipListString
A string value containing a list of recipients who will receive a blind copy of the current message.
strBCCRecipListString
A string containing one or more recipient email addresses separated
by semicolons (;)
The following example demonstrates how to add a recipient to the Bcc list for the current message.
<%
' Dimension local variables.
Dim objNewMail
Dim strBCCRecipList
' Instantiate a NewMail object.
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
' Set the Bcc property of the NewMail object to the following
' email addresses: (1) tom@execucom.com, (2) billw@firebird.com,
' and (3) helen@zoologyzine.com.
strBCCRecipList = _
"tom@execucom.com;billw@firebird.com;helen@zoologyzine.com"
objNewMail.Bcc = strBCCRecipList
' 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 that section in this chapter.
objNewMail.Send , , "This is the subject",,cdoHigh
%>As demonstrated in the example, the string you use to set the Bcc property of the NewMail object can contain a single email address or multiple email addresses separated by semicolons.
Read now
Unlock full access