Class UpdateDraftToRecipientsAction
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["This action updates the \"To\" recipients of an email draft."],["It provides a method, `addUpdateToRecipients`, which takes an array of email addresses as input for the new recipients."],["Using `addUpdateToRecipients` will replace the existing \"To\" recipients with the provided list."],["The method returns an `UpdateDraftToRecipientsAction` object, allowing for chained operations."]]],["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"]]