Product Logo

SMTPit Pro

A Feature-rich Email plug-in

Functions

SMTPit_SetCC

NameSMTPit_SetCC
Description

Use the SMTPit_SetCC function to assign the “CC” (Carbon Copy) email address(es). If you have multiple email addresses and you want to set them all at once, separate each email address with a paragraph mark or, if in a field, with a return. SMTPit Pro will validate the email addresses you give it to see if they “look” like email addresses. If SMTPit Pro cannot find a valid email address, it will return an error. For examples of what SMTPit Pro considers to be a “valid” email address, see the SMTPit_SetTo function.

Return TypeText
FormatSMTPit_SetCC ( CC(s) ; SMTPit_Append )
Required Parameters
CC(s)

The CC Email Addresses for the email.

Optional Parameters
SMTPit_Append

Leave this in to add the(se) Email Address(es) to the current list of Addresses.

Examples
Example 1

Adds the email "Doe, John" <john@somewhere.com> to the CC field.

SMTPit_SetCC( "\"Doe, John\" <john@somewhere.com>" )
Example 2

Adds the email addresses "smtpit@nowhere.com" and "info@nowhere.com" to the CC field.

SMTPit_SetCC( "smtpit@nowhere.com¶info@nowhere.com" )
Example 3

Appends the email address "smtpit@nowhere.com" to the current list of CCs.

SMTPit_SetCC( "smtpit@nowhere.com" ; SMTPit_Append )