Kirim Email Api Key Vimanamail memiliki kemampuan untuk mengirimkan email menggunakan API (Application Programming Interface) berbasis protocol HTTPS dengan JSON REST API.
console vimanamail : https://stayclean.vimanamail.id/
Sebelum memulai, pastikan beberapa hal berikut:
- Fungsi SMTP Outgoing sudah enable dan memiliki API Key sebagai credential yang wajib dimiiki
- IP Pengirim sudah masuk ke daftar Allowlist (biasanya merupakan IP server tempat aplikasi berada)
Service location and request structure
HTTP Method/URI:
Method: POST
https://api.defend.my.id/vimana.php
Request Body:
{
"apikey":"apikey",
"emailfromname":"Email Sender Name",
"emailfrom":"email@sender.com",
"emailtoname":["Email Recipient Name"],
"emailto":["email@recipient.com"],
"emailsubject":"Email Subject",
"emailbody":"Email Body",
"attachmentname":["filename.jpg"],
"attachmentfile":["base64code"]
}
Name | Data Type | Description |
apikey | String | Api key yang didapat dari vimana console |
emailfromname | String | Nama pengirim email |
emailfrom | String | Alamat pengirim email |
emailtoname | Array | Nama penerima email |
emailto | Array | Alamat penerima email |
emailsubject | String | Subject email |
emailbody | String | Isi email, mendukung format html/plain text |
attachmentname | Array | Nama file attachment (optional) |
attachmentfile | Array | Code base64 file attachment (optional) |
Successful response
{
"errlog":0,
"errdesc":”success”
}
Failed response
Code | Description |
Api_100 | Parameter request body tidak valid |
Api_101 | Format alamat email tidak valid |
Api_102 | Terjadi kesalahan pada server |
Api_103 | Error parsing parameter |
Api_104 | Filter SMTP: SenderIPRejected, SenderDomainRejected, OverQuotaDaily, OverQuotaMonthly, AttacmentSizeExceeded, EmailSizeExceeded |