Amazon SES SMTP with Django

前端 未结 7 1711
悲&欢浪女
悲&欢浪女 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 05:57

    I have tried smtp settings in order to @Givp(who answered above), I want to give complete AWS SMTP settings in django.

    DEFAULT_FROM_EMAIL = 'admin@domain.com'
    
    ADMINS = [('name', 'name@domain.com')]
    MANAGERS = ADMINS
    
    SERVER_EMAIL = 'admin@domain.com' # this is for to send 500 mail to admins
    
    EMAIL_BACKEND = 'django_smtp_ssl.SSLEmailBackend'
    MAIL_HOST = 'email-smtp.us-east-1.amazonaws.com' 
    EMAIL_PORT = 465
    EMAIL_HOST_USER = 'Accesskeyofsmtp'
    EMAIL_HOST_PASSWORD = 'secretkeyofsmtp'
    EMAIL_USE_TLS = True
    

    here we have to verify all the mail-ids before sending email.then everything would work as our expectation

提交回复
热议问题