SMTP Connector

You can now use DronaHQ’s SMTP connector to configure and send emails from all of your favorite emailing services providers like Gmail, Outlook, SendGrid, Amazon SES, etc. Right from your app.

Adding SMTP Connector

  1. To get started with SMTP Connector first, we need to add the connector from the connector page.

  2. You can find SMTP under the APIs section, select it.

  3. You can find here previously added SMTP service providers, which you can edit, and to add new click on Connect SMTP.

  4. Here fill out the necessary details related to the SMTP service provider such as its Hostname, Port, Username, and Password.

NOTE: You can add an SMTP connector directly from the app also, by going to the action flow of control and adding SMTP from server-side action under Ready third-party connectors.

Select Manage SMTP account and it will open up the tab with previously added SMTP and the option to add a new SMTP

Configuring SMTP connector

Now that the SMTP connector is created, the next is to integrate its SMTP service provider. It will determine which mail server your SMTP will use to send system-generated emails.

Integrating SMTP provider

To integrate an SMTP provider such as Gmail. SendGrid, Outlook, and more, you have to fill in the details according to the provider. Enter your SMTP server host endpoint in the “Host” field. Depending on how authentication is set up for your SMTP, you may need to enter a port, username, and/or password. Here we will be using the Gmail service provider.

Click on Save and the SMTP connector will be ready.

Configuring SMTP connector in action flow

We have added an SMTP connector with integration to the mail service provider, now you need to configure its components like the sender’s email, receiver’s email, subject, and more from the action flow.

  1. Go to the action flow, and select the SMTP action from the Server-side action.

  2. Select the Environment where your integrated SMTP is saved. Then click continue.

  3. In the next step, you have various predefined input fields. Where you can define the email address of the sender, and receiver along with BCC emails and CC emails. You can also mention reply to email address separately.

  • Reply to: This email address will define the location where emails will be received in case of a reply from the receiver.

  • Subject: Here you can mention the subject for system-generated emails which are to be sent.

  • Content type: Under content type, we have two options:

    • HTML: With this selected user gets to add formatted texts, URLs, images and other styling components for the email content, by using various HTML tags.

    • Text: It is selected to support normal texts without any styling or formatting.

  • Message: Users can mention the body content for the email here.

  • Attachments: In order to send images, their URL, as well as uploaded files, can be put up here. This will be sent along with the email to the receiver.

NOTE: The user can select keywords to fill up the input fields. These input fields can contain an array of strings and objects.

  1. Select Continue then Finish.

SMTP connector in action

In the above image, keywords are used to bind the input fields from different controls as shown below.

An email has been received to the receiver’s address along with an attached image. In the body of the email, we have styled and formatted text with the help of HTML type message.