HomeEmail APIPostman Guide

📧 How to Test iSMS Email API Using Postman

Step-by-step guide to sending emails via the iSMS Email Sending API using Postman — POST request with x-www-form-urlencoded body.

Before You Start

Make sure you have the following ready:

API Endpoint & Parameters

The iSMS Email API uses a POST request with x-www-form-urlencoded body. Endpoint:

https://smtpapi.vocotext.com/isms_send_email_smtp_api.php
ParameterTypeDescriptionRequired
unstringYour iSMS username✅ Yes
pwdstringYour iSMS password✅ Yes
toEmailstringRecipient's email address✅ Yes
subjectstringSubject of the email✅ Yes
bodystringBody content of the email (HTML supported)✅ Yes
accountNamestringYour verified sender email address to send from✅ Yes
fromAliasstringDisplay name of the sender✅ Yes
agreedtermstringMust be set to YES✅ Yes
attachmentfileOptional file attachment❌ Optional

Step-by-Step: Send Email via Postman

1

Create a New Request — Set Method to POST

Open Postman. Click "New""HTTP Request". Set the method to POST.

Enter the endpoint URL:

https://smtpapi.vocotext.com/isms_send_email_smtp_api.php
2

Set Body → x-www-form-urlencoded

Click the "Body" tab → select "x-www-form-urlencoded" (not raw, not form-data). Add each parameter as a key-value pair:

KeyValue (example)
unmyusername
pwdmypassword
toEmail[email protected]
subjectHello from iSMS Email API
body<h1>Hello!</h1><p>This is a test email.</p>
accountName[email protected]
fromAliasYour Company Name
agreedtermYES
📎 File attachment: x-www-form-urlencoded does not support file uploads. To send an email with an attachment, use form-data body type instead and set the attachment field type to "File".
3

Click Send and Check the Response

Click "Send". A successful response will be returned from the server confirming the email was accepted.

✅ Success — your email was accepted by the sending server. Delivery to the recipient's inbox depends on their mail server and spam filters.

PHP Code Example

<?php $url = 'https://smtpapi.vocotext.com/isms_send_email_smtp_api.php'; $postData = [ 'un' => 'myusername', 'pwd' => 'mypassword', 'toEmail' => '[email protected]', 'subject' => 'Hello from iSMS Email API', 'body' => '<h1>Hello!</h1><p>This is a test email.</p>', 'accountName' => '[email protected]', 'fromAlias' => 'Your Company Name', 'agreedterm' => 'YES' ]; // Optional: add file attachment // $postData['attachment'] = new CURLFile('/path/to/file.pdf', 'application/pdf', 'file.pdf'); $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postData)); $response = curl_exec($ch); curl_close($ch); echo $response; ?>
📋 Note: The accountName must be a verified sender email address in your iSMS email account. Using an unverified address will result in an error. Refer to the Email API Documentation for full details.
📞 Need Help? Email: [email protected]  |  Toll Free: 1800 87 7061  |  KL: +603 2780 3880

Full API reference: Email API Documentation →

📱 SMS Coverage — All Countries Worldwide

A B C D E F G H I J K L M N O P Q R S T U V Y Z