[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-04 (世界標準時間)。"],[[["\u003cp\u003eThe Gmail service in Google Apps Script allows for comprehensive management of Gmail accounts, including sending emails, managing drafts, labels, and messages.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGmailApp\u003c/code\u003e class provides access to various Gmail functionalities, such as creating drafts, managing labels, searching emails, and retrieving threads.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGmailThread\u003c/code\u003e and \u003ccode\u003eGmailMessage\u003c/code\u003e objects offer methods to interact with email threads and individual messages respectively, including marking them as read, starring, moving them to different folders, and replying to them.\u003c/p\u003e\n"],["\u003cp\u003eYou can use dedicated classes like \u003ccode\u003eGmailAttachment\u003c/code\u003e, \u003ccode\u003eGmailDraft\u003c/code\u003e, and \u003ccode\u003eGmailLabel\u003c/code\u003e to work with email attachments, drafts, and labels respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe service offers methods to search for emails based on queries and to manage spam, starred, priority inbox, and trash threads.\u003c/p\u003e\n"]]],["Gmail enables users to manage emails, drafts, and labels. Key actions include creating and managing labels with `createLabel` and `deleteLabel`, retrieving them with `getUserLabelByName`, and listing all labels with `getUserLabels`. It also allows creating drafts via `createDraft`, managing threads using methods like `getInboxThreads` and managing message using methods like `getMessageById`. Users can search with `search`, send emails with `sendEmail`, mark messages/threads as read/unread, and move them to the trash/spam/archive. Attachment data can be read/write with methods such as `getBytes` and `setBytes`.\n"],null,[]]