Class UpdateDraftToRecipientsAction
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
更新草稿收件者動作
更新電子郵件草稿的「收件者」收件者。
內容詳盡的說明文件
addUpdateToRecipients(toRecipientEmails)
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThis action updates the "To" recipients of an email draft.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a method, \u003ccode\u003eaddUpdateToRecipients\u003c/code\u003e, which takes an array of email addresses as input for the new recipients.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eaddUpdateToRecipients\u003c/code\u003e will replace the existing "To" recipients with the provided list.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns an \u003ccode\u003eUpdateDraftToRecipientsAction\u003c/code\u003e object, allowing for chained operations.\u003c/p\u003e\n"]]],["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"],null,["# Class UpdateDraftToRecipientsAction\n\nUpdateDraftToRecipientsAction\n\nUpdates the To recipients of an email draft. \n\n### Methods\n\n| Method | Return type | Brief description |\n|----------------------------------------------------------------------------|------------------------------------|----------------------------------------------|\n| [addUpdateToRecipients(toRecipientEmails)](#addUpdateToRecipients(String)) | [UpdateDraftToRecipientsAction](#) | Updates the To recipients of an email draft. |\n\nDetailed documentation\n----------------------\n\n### `add``Update``To``Recipients(toRecipientEmails)`\n\nUpdates the To recipients of an email draft.\n\n#### Parameters\n\n| Name | Type | Description |\n|-------------------------|------------|-------------------------------------------------|\n| `to``Recipient``Emails` | `String[]` | The To recipients to insert to the email draft. |\n\n#### Return\n\n\n[UpdateDraftToRecipientsAction](#) --- This object, for chaining."]]