Scoped GlideEmailOutbound - addAddress(String type, String address, String displayName)

Adds the recipient to either the cc or bcc list, but uses the display name instead of the address when showing the recipient.

Table 1. Parameters
Name Type Description
type String Either cc or bcc, determines the list to which the address is added.
address String The recipient's email address.
displayName String The name to be shown instead of the email address.
Table 2. Returns
Type Description
void

email.addAddress('bcc', 'joe.employee@something.com', 'dudley rocks');