VacationSettings
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Einstellungen für automatische Abwesenheitsnotizen für ein Konto. Diese Einstellungen entsprechen der Funktion Abwesenheitsnotiz in der Weboberfläche.
JSON-Darstellung |
{
"enableAutoReply": boolean,
"responseSubject": string,
"responseBodyPlainText": string,
"responseBodyHtml": string,
"restrictToContacts": boolean,
"restrictToDomain": boolean,
"startTime": string,
"endTime": string
} |
Felder |
enableAutoReply |
boolean
Flag, das festlegt, ob Gmail automatisch auf Nachrichten antwortet.
|
responseSubject |
string
Optionaler Text, der dem Betreff in Abwesenheitsnotizen vorangestellt werden soll. Damit automatische Antworten aktiviert werden können, muss entweder der Betreff oder der Textkörper der Antwort nicht leer sein.
|
responseBodyPlainText |
string
Antworttext im Nur-Text-Format. Wenn sowohl responseBodyPlainText als auch responseBodyHtml angegeben sind, wird responseBodyHtml verwendet.
|
responseBodyHtml |
string
Antworttext im HTML-Format. Gmail bereinigt den HTML-Code vor dem Speichern. Wenn sowohl responseBodyPlainText als auch responseBodyHtml angegeben sind, wird responseBodyHtml verwendet.
|
restrictToContacts |
boolean
Mit dieser Flag wird festgelegt, ob Antworten an Empfänger gesendet werden, die nicht in der Kontaktliste des Nutzers stehen.
|
restrictToDomain |
boolean
Mit diesem Flag wird festgelegt, ob Antworten an Empfänger gesendet werden, die sich nicht in der Domain des Nutzers befinden. Diese Funktion ist nur für Google Workspace-Nutzer verfügbar.
|
startTime |
string (int64 format)
Eine optionale Startzeit für das Senden automatischer Antworten (Epoche in Millisekunden). In diesem Fall antwortet Gmail automatisch nur auf Nachrichten, die nach dem Startzeitpunkt eingehen. Wenn sowohl startTime als auch endTime angegeben sind, muss startTime vor endTime stehen.
|
endTime |
string (int64 format)
Optionales Enddatum für das Senden automatischer Antworten (Epoche in Millisekunden). In diesem Fall antwortet Gmail automatisch nur auf Nachrichten, die vor dem Endzeitpunkt eingehen. Wenn sowohl startTime als auch endTime angegeben sind, muss startTime vor endTime stehen.
|
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[],[],null,["# VacationSettings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nVacation auto-reply settings for an account. These settings correspond to the [\"Vacation responder\"](https://support.google.com/mail/answer/25922) feature in the web interface.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"enableAutoReply\": boolean, \"responseSubject\": string, \"responseBodyPlainText\": string, \"responseBodyHtml\": string, \"restrictToContacts\": boolean, \"restrictToDomain\": boolean, \"startTime\": string, \"endTime\": string } ``` |\n\n| Fields ||\n|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `enableAutoReply` | `boolean` Flag that controls whether Gmail automatically replies to messages. |\n| `responseSubject` | `string` Optional text to prepend to the subject line in vacation responses. In order to enable auto-replies, either the response subject or the response body must be nonempty. |\n| `responseBodyPlainText` | `string` Response body in plain text format. If both `responseBodyPlainText` and `responseBodyHtml` are specified, `responseBodyHtml` will be used. |\n| `responseBodyHtml` | `string` Response body in HTML format. Gmail will sanitize the HTML before storing it. If both `responseBodyPlainText` and `responseBodyHtml` are specified, `responseBodyHtml` will be used. |\n| `restrictToContacts` | `boolean` Flag that determines whether responses are sent to recipients who are not in the user's list of contacts. |\n| `restrictToDomain` | `boolean` Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for Google Workspace users. |\n| `startTime` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` An optional start time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives after the start time. If both `startTime` and `endTime` are specified, `startTime` must precede `endTime`. |\n| `endTime` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` An optional end time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives before the end time. If both `startTime` and `endTime` are specified, `startTime` must precede `endTime`. |"]]