Programmer's Reference Guide

29.7. Adding Recipients

Recipients can be added in three ways:

  • addTo(): Adds a recipient to the mail with a "To" header

  • addCc(): Adds a recipient to the mail with a "Cc" header

  • addBcc(): Adds a recipient to the mail not visible in the header.

[Note] Additional parameter

addTo() and addCc() accept a second optional parameter that is used as a human-readable name of the recipient for the header.