Vacation auto-reply settings for an account. These settings correspond to the "Vacation responder" feature in the web interface.
| JSON representation |
|---|
{ "enableAutoReply" : boolean , "responseSubject" : string , "responseBodyPlainText" : string , "responseBodyHtml" : string , "restrictToContacts" : boolean , "restrictToDomain" : boolean , "startTime" : string , "endTime" : string } |
| Fields | |
|---|---|
enableAutoReply
|
Flag that controls whether Gmail automatically replies to messages. |
responseSubject
|
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. |
responseBodyPlainText
|
Response body in plain text format. If both |
responseBodyHtml
|
Response body in HTML format. Gmail will sanitize the HTML before storing it. If both |
restrictToContacts
|
Flag that determines whether responses are sent to recipients who are not in the user's list of contacts. |
restrictToDomain
|
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. |
startTime
|
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 |
endTime
|
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 |

