Integration · Django
Django email SMTP settings
Django's built-in SMTP backend works as is: set five values in settings.py.
Steps
- 1Add the settings below.
- 2Keep the password in an environment variable.
- 3Test with python manage.py sendtestemail [email protected].
Connection settings
- Host
- smtp.mailerace.com
- Port
- 587 (STARTTLS) or 465 (TLS)
- Auth
- your SMTP credential
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "smtp.mailerace.com"
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = os.environ["MAILERACE_SMTP_USER"]
EMAIL_HOST_PASSWORD = os.environ["MAILERACE_SMTP_PASSWORD"]
DEFAULT_FROM_EMAIL = "Acme <[email protected]>"Send from Django with confidence
Authenticated, signed and delivered from warm IPs, with a log of every message.