Chế độ cài đặt thư trả lời tự động khi nghỉ phép cho một tài khoản. Các chế độ cài đặt này tương ứng với tính năng "Thư trả lời tự động" trong giao diện web.
Cờ kiểm soát việc Gmail có tự động trả lời thư hay không.
responseSubject
string
Văn bản không bắt buộc để thêm vào dòng tiêu đề trong thư trả lời khi bạn đi nghỉ. Để bật tính năng tự động trả lời, tiêu đề thư trả lời hoặc nội dung thư trả lời phải chứa nội dung.
responseBodyPlainText
string
Nội dung phản hồi ở định dạng văn bản thuần tuý. Nếu bạn chỉ định cả responseBodyPlainText và responseBodyHtml, thì responseBodyHtml sẽ được sử dụng.
responseBodyHtml
string
Nội dung phản hồi ở định dạng HTML. Gmail sẽ dọn dẹp HTML trước khi lưu trữ. Nếu bạn chỉ định cả responseBodyPlainText và responseBodyHtml, thì responseBodyHtml sẽ được sử dụng.
restrictToContacts
boolean
Cờ xác định xem thư trả lời có được gửi đến những người nhận không có trong danh bạ của người dùng hay không.
restrictToDomain
boolean
Cờ xác định xem phản hồi có được gửi đến người nhận bên ngoài miền của người dùng hay không. Tính năng này chỉ dành cho người dùng Google Workspace.
Thời gian bắt đầu tuỳ chọn để gửi thư trả lời tự động (mili giây theo kỷ nguyên). Khi bạn chỉ định thời gian bắt đầu, Gmail sẽ chỉ tự động trả lời những thư nhận được sau thời gian bắt đầu. Nếu bạn chỉ định cả startTime và endTime, thì startTime phải đứng trước endTime.
Thời gian kết thúc (không bắt buộc) để gửi tin nhắn trả lời tự động (theo chuẩn thời gian bắt đầu của hệ thống). Khi bạn chỉ định thời gian kết thúc, Gmail sẽ chỉ tự động trả lời những thư nhận được trước thời gian kết thúc. Nếu bạn chỉ định cả startTime và endTime, thì startTime phải đứng trước endTime.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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`. |"]]