⚡
⚡
⚡
⚡
Candymail
Built by SaaSBase
Search…
Candymail
Getting Started
Guides
Docs
Examples
Automation Templates
Mail Providers
Send emails using Gmail
Send emails using Mailgun
Other mail providers
Powered By
GitBook
Send emails using Mailgun
Send emails using Mailgun
Setup a new account
Sign up for a Mailgun account here
here
From the right side, select
Sending
>
Domain Settings
>
Add a new SMTP user
. This will be your
user
and
pass
.
Initialize Candymail
Initialize Candymail config with Mailgun STMP.
1
candymail.init(automation.workflows, {
2
mail: {
3
host: 'smtp.mailgun.org',
4
port: 465,
5
secure: true,
6
auth: {
7
user: process.env.MAIL_USER,
8
pass: process.env.MAIL_PASSWORD,
9
},
10
tls: {
11
rejectUnauthorized: true,
12
},
13
},
14
hosting: { url: process.env.HOSTING_URL },
15
db: { reset: true },
16
debug: { trace: true },
17
})
Copied!
Mail Providers - Previous
Send emails using Gmail
Next - Mail Providers
Other mail providers
Last modified
5mo ago
Copy link
Contents
Setup a new account
Initialize Candymail