Skip to content

Mailgun Configuration

Christina edited this page Jun 19, 2016 · 1 revision

Overview

The Heroku app has a Mailgun plugin enabled. The Mailgun plugin automatically sets the environment variables on the production server.

Local Development

As long as you have the proper environment set up, this should "just work."

application.yml

Locally, to get this running in development, you will need to set the following values in the application.yml. WARNING: The actual application.yml should not be checked into the repo for security reasons. There is an application.example.yml That can be used as a starting point. This file will automatically load these keys into the environment when the application starts.

# application.yml

defaults: &defaults
  # Mailgun
  MAILGUN_API_KEY: "API Key"
  MAILGUN_DOMAIN: "Domain"
  MAILGUN_PUBLIC_KEY: "Pub key"
  MAILGUN_SMTP_LOGIN: "Default SMTP Login"
  MAILGUN_SMTP_PASSWORD: "Default Password"
  MAILGUN_SMTP_PORT: 587
  MAILGUN_SMTP_SERVER: "smtp.mailgun.org"

  # Google Auth
  PANDA_GOOGLE_KEY: "Google auth key"
  PANDA_GOOGLE_SECRET: "Google auth secret"

development:
  <<: *defaults

test:
  <<: *defaults
Clone this wiki locally