Frameworks

Django

Python framework — pluggable email backends.

Email capabilities

  • Accepts SMTP

Connection methods

  • SMTP
  • Backend

Django's django.core.mail supports SMTP, sendmail, console, and dummy backends. The Anymail package adds SES, Mailgun, Postmark, SendGrid, and Brevo drivers.

Connect Django to MailKite

Set Django's EMAIL_HOST to smtp.mailkite.dev, or use Anymail.

Point Django at MailKite's SMTP relay

A minimal, copy-paste starter. Swap in your own domain and API key.

.env
# Any app that accepts an SMTP server works with MailKite
MAIL_HOST=smtp.mailkite.dev
MAIL_PORT=587 # STARTTLS (or 465 for TLS)
MAIL_ENCRYPTION=tls
MAIL_USERNAME=mailkite # username is ignored
MAIL_PASSWORD=mk_live_... # your MailKite API key
MAIL_FROM_ADDRESS=you@yourdomain.com # on a verified domain
MAIL_FROM_NAME=Django
Read the SMTP relay reference
Email tools

Commonly paired with Django

Connect Django to MailKite today

Point a domain, set one SMTP endpoint, send your first email in minutes. Unlimited domains, no credit card.