SMTP and API
There are two ways in which you will be able to send emails using TransMail service:
What is SMTP?
SMTP or Simple Mail Transfer Protocol is the method by which any application can connect with an SMTP server to send emails. In-order to use TransMail SMTP servers, you will have to configure your application settings with TransMail's SMTP information.
If your application is already using any other email provider to send transactional emails, it is easier to migrate to TransMail by replacing the existing SMTP settings with TransMail's SMTP settings.
To connect to TransMail via SMTP method add the following details:
- Server name - smtp.transmail.com
- Port Number, Authentication - 465 (SSL), 587 (TLS)
- Username - default username is "emailapikey"
- Authorization - Zoho-enczapikey <space> <Send Mail token>
Your application can use TransMail's REST API to make HTTP requests to send emails via TransMail. The HTTP POST request can be made to our send mail API endpoint https://api.transmail.com/v1.0/email with the JSON message attached to the body.
Application developers can authenticate API requests to TransMail by adding an authorization parameter as shown below in the header section. This is the Send Mail Token (a unique token for every Mail Agent) that you can generate in your TransMail account.
Authorization - Zoho-enczapikey <space> <Send Mail token>
If API requests are made to TransMail without these headers, you will receive HTTP response "401 Unauthorised" error.
Mail Send API - JSON format
JSON messages are passed in the body of the HTTP POST request. You can go to API documentation section to view:
Before you get started it is important to know that TransMail is for sending transactional emails like welcome emailers, password resets emails, OTPs. We do not support sending of bulk emails or promotional emails like newsletters or marketing campaign emails. If you are looking for a bulk email provider, you can visit Zoho Campaigns.