Using Mailgun for bulk email
For context about why you might want to use Mailgun, see our Bulk Email FAQ.
- Signup for for a Mailgun account. If you send more than 10,000/month you'll need to be on a paid plan.
- Create a new domain within Mailgun. This will be your email domain. So if your email address if "firstname.lastname@example.org" the domain you want to add here would be "nike.com".
- Add "mailgun.org" to the list of email providers allowed to send messages on your domain's behalf.
This step depends on who provides your DNS service. For many hosting providers like Hostgator or Dreamhost please follow these steps: http://www.mail-tester.com/spf/cpanel -- just remember the TXT Data field should read `v=spf1 include:mailgun.org ~all` It may also contain another include statement for your email server.
- Find the SMTP account settings for your mailgun account
- Head over to Close.io's Settings -> Email Settings and then click "Edit SMTP" when you already have an email account set up.
- Enter the SMTP settings for your mailgun account from step #4.
Adding Unsubscribe Links
You can add "%unsubscribe_url%" to the bottom of any email templates you'd like to bulk message and Mailgun will rewrite the message to include an unsubscribe link and manage the process of not sending emails to people who have opted-out. More details here: https://documentation.mailgun.com/user_manual.html#tracking-unsubscribes