Skip to main content

Mailgun

ToolJet can connect to your Mailgun account to send emails.

info

The Mailgun API Datasource supports for interaction with the mail endpoint of the Mailgun API.

Connection​

To establish a connection with the Mailgun data source, click on the + Add new data source button located on the query panel or navigate to the Data Sources page from the ToolJet dashboard.

ToolJet requires the following to connect to your Mailgun:

  • Domain: Your Mailgun sending domain. ToolJet sends email through this domain.
  • Api key

Optionally, turn on EU hosted if your Mailgun account is hosted in the EU. ToolJet then sends requests to https://api.eu.mailgun.net instead of https://api.mailgun.net.

ToolJet - Data source connection - Mailgun
tip

Mailgun API key is required to create an Mailgun datasource on ToolJet. You can generate API key by visiting Mailgun account page.

Supported Operations​

Email Service​

Required parameters:​

  • Send mail to
  • Send mail from
  • Subject
  • Body as text

Optional parameters:​

  • Body as HTML
ToolJet - Data source - Mailgun Query
info

Send mail to - accepts an array of email addresses, even for a single recipient. For example: {{["[email protected]"]}}.

Send mail from - accepts a string. For example: [email protected]

tip

Multiple recipients - Add each address to the Send mail to array, for example {{["[email protected]", "[email protected]"]}}.