[[["容易理解","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"]],["上次更新時間:2024-12-03 (世界標準時間)。"],[[["The Gmail service in Google Apps Script allows for comprehensive management of Gmail accounts, including sending emails, managing drafts, labels, and messages."],["The `GmailApp` class provides access to various Gmail functionalities, such as creating drafts, managing labels, searching emails, and retrieving threads."],["`GmailThread` and `GmailMessage` 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."],["You can use dedicated classes like `GmailAttachment`, `GmailDraft`, and `GmailLabel` to work with email attachments, drafts, and labels respectively."],["The service offers methods to search for emails based on queries and to manage spam, starred, priority inbox, and trash threads."]]],["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"]]