Mailgun
Mailgun by Sinch is an email delivery service for sending, receiving, and tracking emails.
Last updated
Mailgun by Sinch is an email delivery service for sending, receiving, and tracking emails.
Last updated
Connect a Mailgun account to Chatlayer and trigger and email that will be sent to your user at that point in the bot flow.
In an Action block, select the Mailgun app from the App options menu on the right side.
An App integration section will automatically appear. You will be able to see the accounts that are already connected to Chatlayer, if any, and a button to connect a new account. In case the account you need to use is already connected, you can select it from the list and skip the "connect new account" steps.
When clicking “Connect new account”, this pop-up will appear:
The Private API key can be found by clicking your username on the top right corner and clicking on API Keys.
The Domain names can be found on the left-side menu, by clicking Sending and Domains. The Domain region is informed by the flag to the left side of each Domain name:
After that you will be able to see all connected accounts in the Action block.
Then select the available action, in this case it’s ‘Send email’
Set up the action by filling the required fields:
'From': make sure to add the username before the domain name, eg.: username@domainname.com
'To': you can write down the emails of one or multiple recipients or write down a variable that is saving the user input from an Input Validation earlier in the flow,
eg.: create an Collect input block (the green ones) to ask for the user email, save it under the variable emailLead. In the Action block (orange), inform the name of the variable in curly brackets {emailLead} to send it to the email the user informed in the previous step.
'Email subject': choose a contextualized email so the user will easily find it.
'Email body': write down the text that the user should receive and sign it.
You're good to go.
When that Action block is triggered from your flow, the user will receive the email you configured.
If you are using a Mailgun sandbox account to test the flow, make sure to pre-authorize the recipients for that domain on Mailgun.