Membuat alias kirim-sebagai "dari" khusus. Jika MSA SMTP ditentukan, Gmail akan mencoba terhubung ke layanan SMTP untuk memvalidasi konfigurasi sebelum membuat alias. Jika verifikasi kepemilikan diperlukan untuk alias, pesan akan dikirim ke alamat email dan status verifikasi resource akan ditetapkan ke pending; jika tidak, resource akan dibuat dengan status verifikasi yang ditetapkan ke accepted. Jika tanda tangan diberikan, Gmail akan membersihkan HTML sebelum menyimpannya dengan alias.
Metode ini hanya tersedia untuk klien akun layanan yang telah didelegasikan ke otoritas seluruh domain.
Permintaan HTTP
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-09-05 UTC."],[[["Creates a custom \"from\" send-as alias, requiring validation for SMTP MSAs and potentially ownership verification."],["Accessible only to service account clients with delegated domain-wide authority, using a specific HTTP POST request."],["Utilizes path parameters including `userId` to identify the user's email address, and requires a request body with a `SendAs` instance."],["Returns a `SendAs` instance in the response body upon successful alias creation."],["Needs authorization with the `https://www.googleapis.com/auth/gmail.settings.sharing` scope."]]],["This describes how to create a custom \"from\" send-as alias in Gmail using a `POST` request to the specified URL. The request includes a `userId` path parameter. The request body contains `SendAs` information, and the response will also be a `SendAs` instance. The creation process may involve SMTP validation and alias verification, setting the resource's verification status accordingly. It also sanitizes provided HTML signatures. This method is limited to service account clients with delegated domain-wide authority and requires a specific OAuth scope.\n"]]