Class UpdateDraftToRecipientsAction
Stay organized with collections
Save and categorize content based on your preferences.
UpdateDraftToRecipientsAction
Updates the To recipients of an email draft.
Detailed documentation
addUpdateToRecipients(toRecipientEmails)
Updates the To recipients of an email draft.
Parameters
| Name | Type | Description |
toRecipientEmails | String[] | The To recipients to insert to the email draft. |
Return
UpdateDraftToRecipientsAction — This object, for chaining.
[null,null,["Last updated 2026-04-13 UTC."],[],["The `UpdateDraftToRecipientsAction` class modifies the \"To\" recipients of an email draft. The key method, `addUpdateToRecipients(toRecipientEmails)`, takes an array of email addresses (`String[]`) as input. This method inserts the provided email addresses into the draft's \"To\" field. The method returns an instance of `UpdateDraftToRecipientsAction`, allowing for method chaining. This action allows updating draft recipients.\n"]]