<- Back to SMTPit Pro function list
SMTPit_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 Type
- Text
- Format
- SMTPit_SetCC ( CC(s) ; SMTPit_Append )
- Required Parameters
- CC(s)
The CC Email Addresses for the email.
- CC(s)
- Optional Parameters
- SMTPit_Append
Leave this in to add the(se) Email Address(es) to the current list of Addresses.
- SMTPit_Append
- Related Items
- SMTPit_SetBCC, SMTPit_SetFrom, SMTPit_SetReplyTo, SMTPit_SetTo
- Examples
Example 1
Code:
SMTPit_SetCC("\"Doe, John\" <john@somewhere.com>")Result:
Adds the email "Doe, John" <john@somewhere.com> to the CC field.Example 2
Code:
SMTPit_SetCC("smtpit@nowhere.com¶info@nowhere.com")Result:
Adds the email addresses "smtpit@nowhere.com" and "info@nowhere.com" to the CC field.Example 3
Code:
SMTPit_SetCC("smtpit@nowhere.com"; SMTPit_Append )Result:
Appends the email address "smtpit@nowhere.com" to the current list of CCs.