Amazon SES SMTP with Django

前端 未结 7 1709
悲&欢浪女
悲&欢浪女 2021-01-30 05:48

I\'m trying to use Amazon\'s new SMTP service for SES with Django 1.3.1 but I\'m not having much luck.

I\'ve created my SES SMTP credentials and have this in my settings

相关标签:
7条回答
  • 2021-01-30 06:22

    2019 Update: Django 2.2.1

    EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
    
    EMAIL_HOST = 'email-smtp.us-east-1.amazonaws.com'
    EMAIL_PORT = 587
    EMAIL_HOST_USER = 'my_smtp_username'
    EMAIL_HOST_PASSWORD = 'my_smtp_password'
    EMAIL_USE_TLS = True
    

    No library needed.

    Credits : https://stackoverflow.com/a/32476190/5647272

    Reference : https://docs.djangoproject.com/en/2.2/topics/email/

    0 讨论(0)
提交回复
热议问题