ToolJet/docs/versioned_docs/version-2.22.0/data-sources/mailgun.md
Shubhendra Singh Chauhan 2b1e330e97
[docs]readable URLs (#7925)
2023-10-19 17:21:45 +05:30

1.9 KiB

id title
mailgun Mailgun

Mailgun

ToolJet can connect to your Mailgun account to send emails.

ToolJet - Data source - Mailgun

:::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.

Enter your Mailgun API key in the "API key" field.

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

Click on the 'Save' button to save the data source.

Supported operations

  1. Email service

Email service

Required parameters:

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

Optional parameters:

  • Body as HTML
ToolJet - Query Mailgun

:::info Send mail to - accepts a single email id. For example: {{"dev@tooljet.io"}}.

Send mail from - accepts a string. For example: admin@tooljet.io :::

:::tip Send a single email to multiple recipients - The Send mail to field can contain an array of recipients, which will send a single email with all of the recipients in the field.

Send multiple individual emails to multiple recipients - set Multiple recipients field to {{true}} and the Send mail to field will be split into multiple emails and send to each recipient. :::