How to create a transactional email template with API Integration detail 

In this doc, we have provided you with template-based and also without templates.

Video Guide: 

To create a transactional email, you can follow these simple steps:

1. Login to the MSG91 user panel and click on Email.

2. Goto the Templates section and click on the "+ Add Template" option.

3. You will get two options to create a template, i.e., Editor and Builder.

Builder is the updated version of the editor MSG91 has for creating email templates. This will not render the coding you have done for your template and will send the exact content to the end user.

Additionally, there are a ton of pre-made templates available. You can utilize our templates and modify them to suit your needs.

4. Enter the template name and Subject and then click on Builder, you will see the following window. Select "Appearance" or "Content". These contain all the required options for the necessary settings to be made while drafting a template. Draft a template of your wish.

5. You can drop the content or type the content, insert an image or a button as per your requirement and once the drafting is done, click on "Preview."

6. If you are creating a template with "Editor," the following window will open. There are

Numerous formatting options are available; for example, you can add a link or upload images in png, jpg, or gif format, which should not be more than 1MB, by clicking on the "insert image" option and then click on preview.

NOTE: We will recommend using the new feature "Builder" to create a template and to avoid any prospective errors.

7. Click on Add Variable to add as many variables as you want, for example, name and contact number in your email template. The back to list button will take you back to the add a template screen, while the "Add Template" option will let you add another template that you have already created. Once you have created a template, click on Preview and then add a template. 

Note: Click on Save, enter the template name and subject, and save the template.

8. From here, you may even make changes in the HTML code as per your preference.


If you are set on using CSS, your best bet is to use inline code. This is the most effective and widely used method for including CSS in HTML emails. The benefit of using inline CSS is that most email providers will support this style, which means you’re likely to get the best results without running into any formatting trouble. 

To convert your HTML with internal CSS to inline CSS please refer:

API Integration

1. In the Email section only, click on “Domain Setting” on the left side of the Email Dashboard.

2. Copy the APIs and integrate them into your system.

NOTE:  In case, you're testing the 'Send Email' API with the default testing domain, use the email address you used to create your MSG91 account as the recipient email address.