管理休假回覆設定
您可以使用「設定」為帳戶設定預定的自動回覆。
如要瞭解如何取得或更新,請參閱「設定參考資料」。
設定自動回覆
自動回覆需要回覆主旨和內文,可使用 HTML 或純文字。可無限期啟用,或限制在特定時間範圍內。您也可以限制自動回覆功能只回覆已知的聯絡人或網域成員。
設定固定時間的自動回覆範例,並限制回覆對象為同一個網域的使用者:
如要停用自動回覆功能,請更新資源並將 enableAutoReply
設為 false
。如果已設定 endTime
,系統會在指定時間過後自動停用自動回覆功能。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-15 (世界標準時間)。
[null,null,["上次更新時間:2025-01-15 (世界標準時間)。"],[[["Configure scheduled auto-replies for a Gmail account using the Gmail API's Settings resource."],["Auto-replies require a subject and body, can be time-limited, and restricted to specific contacts or domains."],["Provided code samples (Java and Python) demonstrate enabling auto-reply for a fixed duration and within a domain."],["Disable auto-reply by setting `enableAutoReply` to `false` or letting the `endTime` automatically deactivate it."]]],["The content explains how to configure and manage Gmail's auto-reply feature using the Settings API. Key actions include: enabling auto-reply with a subject and body, setting a duration (start/end time), and restricting it to domain members or contacts. Auto-reply can be enabled indefinitely or for a set period. Code examples demonstrate enabling auto-reply for a week, restricting it to domain members. Disabling the feature requires setting `enableAutoReply` to `false`, or it will auto-disable after the `endTime`.\n"]]