Note
For now the project includes only Mailgun and Sendgrid configuration. Feel free to contribute definitions for other providers.
Retrieves Mailgun add-on settings from the environment and defines the following variables in the herokuify.mail.mailgun module:
- MAILGUN_API_KEY
- MAILGUN_SMTP_SERVER
- MAILGUN_SMTP_LOGIN
- MAILGUN_SMTP_PASSWORD
- MAILGUN_SMTP_PORT
as well as EMAIL_* settings for use in Django config:
- EMAIL_HOST
- EMAIL_HOST_USER
- EMAIL_HOST_PASSWORD
- EMAIL_PORT
Import settings from this module into your Django project settings:
from herokuify.mail.mailgun import EMAIL_HOST, EMAIL_HOST_USER, EMAIL_HOST_PASSWORD, EMAIL_PORT
Use heroku addons command to subscribe for Mailgun add-on:
heroku addons:add mailgun:<PLAN>
Quick start with:
heroku addons:add mailgun:starter
Retrieves Sendgrid add-on settings from the environment and defines the following variables in the herokuify.mail.sendgrid module:
- SENDGRID_SMTP_SERVER
- SENDGRID_USERNAME
- SENDGRID_PASSWORD
- SENDGRID_SMTP_PORT
as well as EMAIL_* settings for use in Django config:
- EMAIL_HOST
- EMAIL_HOST_USER
- EMAIL_HOST_PASSWORD
- EMAIL_PORT
- EMAIL_USE_TLS
Import settings from this module into your Django project settings:
from herokuify.mail.sendgrid import EMAIL_HOST, EMAIL_HOST_USER, EMAIL_HOST_PASSWORD, EMAIL_PORT, EMAIL_USE_TLS
Mailgun api key for using the REST API
Mailgun SMTP server host
Mailgun SMTP server login
Mailgun SMTP server password
Mailgun SMTP server port
Email host for sending mail
Email server username
Email server password
Email server SMTP port
Sendgrid SMTP server host
Sendgrid SMTP server login
Sendgrid SMTP server password
Sendgrid SMTP server port
Email host for sending mail
Email server username
Email server password
Email server SMTP port
Email server TLS secure connection