문제

In my project I'm sending my mails via Amazon Services. The thing is I have to send Daily Digests to all users in my system. That's why I thought it'd be a good idea if I use django-mailer to handle such a process.

I can send mails through django.core.send_mail successfully. When I try mailer's send_mail function, as expected mailer puts the mail into the queue but when I run the python manage.py send_mail, the system fails to send mails. I've checked the logs and it says [Errno 61] Connection refused.

I searched the web, and some posts says I should set up a smtp server, but it makes no sense because I can send mails with django's send_mail function. So I'm thinking that it can be something about amazon configurations but I'm not sure.

Any idea ?

도움이 되었습니까?

해결책

Try to add this to your settings:

MAILER_EMAIL_BACKEND = 'django_ses.SESBackend'

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top