VacationSettings
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Configuración de la respuesta automática de vacaciones para una cuenta. Esta configuración corresponde a la función "Respuesta automática" en la interfaz web.
Representación JSON |
{
"enableAutoReply": boolean,
"responseSubject": string,
"responseBodyPlainText": string,
"responseBodyHtml": string,
"restrictToContacts": boolean,
"restrictToDomain": boolean,
"startTime": string,
"endTime": string
} |
Campos |
enableAutoReply |
boolean
Marca que controla si Gmail responde automáticamente los mensajes.
|
responseSubject |
string
Es un texto opcional que se agrega al principio del asunto en las respuestas de las vacaciones. Para habilitar las respuestas automáticas, el asunto o el cuerpo de la respuesta no deben estar vacíos.
|
responseBodyPlainText |
string
Cuerpo de la respuesta en formato de texto sin formato. Si se especifican responseBodyPlainText y responseBodyHtml , se usará responseBodyHtml .
|
responseBodyHtml |
string
Cuerpo de la respuesta en formato HTML. Gmail limpiará el código HTML antes de almacenarlo. Si se especifican responseBodyPlainText y responseBodyHtml , se usará responseBodyHtml .
|
restrictToContacts |
boolean
Marca que determina si las respuestas se envían a destinatarios que no están en la lista de contactos del usuario.
|
restrictToDomain |
boolean
Es una marca que determina si las respuestas se envían a destinatarios que no pertenecen al dominio del usuario. Esta función solo está disponible para los usuarios de Google Workspace.
|
startTime |
string (int64 format)
Es una hora de inicio opcional para enviar respuestas automáticas (ms de época). Cuando se especifique, Gmail responderá automáticamente solo a los mensajes que reciba después de la hora de inicio. Si se especifican startTime y endTime , startTime debe preceder a endTime .
|
endTime |
string (int64 format)
Es una hora de finalización opcional para enviar respuestas automáticas (ms de época). Cuando se especifique, Gmail responderá automáticamente solo los mensajes que reciba antes de la hora de finalización. Si se especifican startTime y endTime , startTime debe preceder a endTime .
|
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 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`. |"]]