VacationSettings
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Setelan balasan otomatis saat libur untuk akun. Setelan ini sesuai dengan fitur "Penjawab saat libur" di antarmuka web.
Representasi JSON |
{
"enableAutoReply": boolean,
"responseSubject": string,
"responseBodyPlainText": string,
"responseBodyHtml": string,
"restrictToContacts": boolean,
"restrictToDomain": boolean,
"startTime": string,
"endTime": string
} |
Kolom |
enableAutoReply |
boolean
Tanda yang mengontrol apakah Gmail akan otomatis membalas pesan.
|
responseSubject |
string
Teks opsional untuk ditambahkan ke baris subjek dalam respons kala libur. Untuk mengaktifkan balasan otomatis, subjek respons atau isi respons harus berisi.
|
responseBodyPlainText |
string
Isi respons dalam format teks biasa. Jika responseBodyPlainText dan responseBodyHtml ditentukan, responseBodyHtml akan digunakan.
|
responseBodyHtml |
string
Isi respons dalam format HTML. Gmail akan membersihkan HTML sebelum menyimpannya. Jika responseBodyPlainText dan responseBodyHtml ditentukan, responseBodyHtml akan digunakan.
|
restrictToContacts |
boolean
Tanda yang menentukan apakah respons dikirim ke penerima yang tidak ada dalam daftar kontak pengguna.
|
restrictToDomain |
boolean
Tanda yang menentukan apakah respons dikirim ke penerima yang berada di luar domain pengguna. Fitur ini hanya tersedia untuk pengguna Google Workspace.
|
startTime |
string (int64 format)
Waktu mulai opsional untuk mengirim balasan otomatis (epoch ms). Jika ditentukan, Gmail akan otomatis membalas hanya pesan yang diterima setelah waktu mulai. Jika startTime dan endTime ditentukan, startTime harus mendahului endTime .
|
endTime |
string (int64 format)
Waktu akhir opsional untuk mengirim balasan otomatis (epoch ms). Jika ditentukan, Gmail akan otomatis membalas hanya pesan yang diterima sebelum waktu berakhir. Jika startTime dan endTime ditentukan, startTime harus mendahului endTime .
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 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`. |"]]