Frameworks
Django
Use Django's email backend over SMTP.
settings.py
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "postwaves.online"
EMAIL_PORT = 2587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = "postwave"
EMAIL_HOST_PASSWORD = os.environ["API_KEY"]
DEFAULT_FROM_EMAIL = "Acme <hello@yourdomain.com>"from django.core.mail import send_mail
send_mail("Welcome!", "Thanks for signing up.", None, ["user@example.com"])Was this page helpful?Send feedback