Sending Emails with Mailgun
What You'll Need
Backbench account - Sign Up, the personal account will always remain free to use.
Mailgun account - Its free to Sign Up and you get 10000 free emails every month.
Prerequisites for the app
Sign In to Backbench account.
Select +, in the upper right corner to create a Bench. For example, say "bench_one" and select CREATE or hit Enter.
Frontend
Select +, in the upper right corner of file manager to create a html file. For example, say "index.html" and select CREATE or hit Enter.
Copy and paste the code module from below.
Select save.
Dependencies
For nodejs only.
Create a module name package.json
and paste the following code.
Backend
Select +, in the upper right corner to create a Module. For example, say "Send_email.js" and select CREATE or hit Enter.
Copy and paste the code module from below.
Replace API_KEY, DOMAIN from Mailgun dashboard.
Select save.
Asking permissions
Add Authorized Recipients in Domain section (Email-id to which email must be sent, it can me more than one, the recipients email will get a mail from Mailgun to verify if they are interested to receive the email).
Last updated