VacationSettings
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Impostazioni di risposta automatica per le assenze per un account. Queste impostazioni corrispondono alla funzionalità "Risponditore automatico" nell'interfaccia web.
Rappresentazione JSON |
{
"enableAutoReply": boolean,
"responseSubject": string,
"responseBodyPlainText": string,
"responseBodyHtml": string,
"restrictToContacts": boolean,
"restrictToDomain": boolean,
"startTime": string,
"endTime": string
} |
Campi |
enableAutoReply |
boolean
Indica se Gmail deve rispondere automaticamente ai messaggi.
|
responseSubject |
string
Testo facoltativo da anteporre alla riga dell'oggetto nelle risposte automatiche per le assenze. Per attivare le risposte automatiche, l'oggetto della risposta o il corpo della risposta non deve essere vuoto.
|
responseBodyPlainText |
string
Corpo della risposta in formato di testo normale. Se vengono specificati sia responseBodyPlainText che responseBodyHtml , verrà utilizzato responseBodyHtml .
|
responseBodyHtml |
string
Corpo della risposta in formato HTML. Gmail eseguirà la sanitizzazione del codice HTML prima di archiviarlo. Se vengono specificati sia responseBodyPlainText che responseBodyHtml , verrà utilizzato responseBodyHtml .
|
restrictToContacts |
boolean
Indica se le risposte vengono inviate a destinatari che non sono presenti nell'elenco dei contatti dell'utente.
|
restrictToDomain |
boolean
Indica se le risposte vengono inviate a destinatari esterni al dominio dell'utente. Questa funzionalità è disponibile solo per gli utenti di Google Workspace.
|
startTime |
string (int64 format)
Un'ora di inizio facoltativa per l'invio delle risposte automatiche (epoch ms). Se viene specificato questo valore, Gmail risponderà automaticamente solo ai messaggi ricevuti dopo l'ora di inizio. Se sono specificati sia startTime che endTime , startTime deve precedere endTime .
|
endTime |
string (int64 format)
Un'ora di fine facoltativa per l'invio delle risposte automatiche (epoch ms). Se viene specificato, Gmail risponderà automaticamente solo ai messaggi ricevuti prima dell'ora di fine. Se sono specificati sia startTime che endTime , startTime deve precedere endTime .
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 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`. |"]]