VacationSettings
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การตั้งค่าการตอบกลับอัตโนมัติเมื่อลางานสำหรับบัญชี การตั้งค่าเหล่านี้สอดคล้องกับฟีเจอร์ "การช่วยตอบอีเมลอัตโนมัติ" ในเว็บอินเทอร์เฟซ
การแสดง JSON |
{
"enableAutoReply": boolean,
"responseSubject": string,
"responseBodyPlainText": string,
"responseBodyHtml": string,
"restrictToContacts": boolean,
"restrictToDomain": boolean,
"startTime": string,
"endTime": string
} |
ช่อง |
enableAutoReply |
boolean
แฟล็กที่ควบคุมว่า Gmail จะตอบกลับข้อความโดยอัตโนมัติหรือไม่
|
responseSubject |
string
ข้อความที่ไม่บังคับที่จะใส่ไว้ข้างหน้าบรรทัดเรื่องในการช่วยตอบอีเมลอัตโนมัติ หากต้องการเปิดใช้การตอบกลับอัตโนมัติ เรื่องหรือเนื้อหาของคำตอบต้องไม่ว่างเปล่า
|
responseBodyPlainText |
string
เนื้อหาคำตอบในรูปแบบข้อความธรรมดา หากระบุทั้ง responseBodyPlainText และ responseBodyHtml ระบบจะใช้ responseBodyHtml
|
responseBodyHtml |
string
เนื้อความของคำตอบในรูปแบบ HTML Gmail จะล้างข้อมูล HTML ก่อนที่จะจัดเก็บ หากระบุทั้ง responseBodyPlainText และ responseBodyHtml ระบบจะใช้ responseBodyHtml
|
restrictToContacts |
boolean
แฟล็กที่กำหนดว่าจะส่งการตอบกลับไปยังผู้รับที่ไม่ได้อยู่ในรายชื่อติดต่อของผู้ใช้หรือไม่
|
restrictToDomain |
boolean
แฟล็กที่กำหนดว่าจะส่งคำตอบไปยังผู้รับที่อยู่นอกโดเมนของผู้ใช้หรือไม่ ฟีเจอร์นี้พร้อมใช้งานสำหรับผู้ใช้ Google Workspace เท่านั้น
|
startTime |
string (int64 format)
เวลาเริ่มต้นที่ไม่บังคับสำหรับการส่งการตอบกลับอัตโนมัติ (มิลลิวินาทีตามยุค) เมื่อระบุเวลาเริ่มต้นแล้ว Gmail จะตอบกลับโดยอัตโนมัติเฉพาะข้อความที่ได้รับหลังจากเวลาเริ่มต้นเท่านั้น หากระบุทั้ง startTime และ endTime startTime ต้องอยู่ก่อน endTime
|
endTime |
string (int64 format)
เวลาสิ้นสุดการส่งการตอบกลับอัตโนมัติ (Epoch ms) (ไม่บังคับ) เมื่อระบุเวลาสิ้นสุดแล้ว Gmail จะตอบกลับโดยอัตโนมัติเฉพาะข้อความที่ได้รับก่อนเวลาสิ้นสุดเท่านั้น หากระบุทั้ง startTime และ endTime startTime ต้องอยู่ก่อน endTime
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 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`. |"]]