休暇設定の管理
[設定] を使用して、アカウントのスケジュール設定された自動返信を構成できます。
取得または更新する方法については、設定リファレンスをご覧ください。
自動返信の設定
自動返信には、レスポンスの件名と本文(HTML またはプレーンテキスト)が必要です。無期限に有効にすることも、特定の期間に限定することもできます。既知のコンタクトまたはドメイン メンバーに自動返信を制限することもできます。
一定の期間自動返信を設定し、返信を同じドメイン内のユーザーに制限する例:
自動返信を無効にするには、リソースを更新して enableAutoReply
を false
に設定します。endTime
が構成されている場合、指定した時間が経過すると自動返信は自動的に無効になります。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-01-15 UTC。
[null,null,["最終更新日 2025-01-15 UTC。"],[[["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"]]