Closed alexauvray closed 5 years ago
Can you provide some further info from the logs please? It will help investigating the issue
I don't have the log anymore as I have removed Heroku but I will try on my local server.
Are you sure it works on a local server ? I tried sending emails through AWS SMTP but I receive no mail. And I have no logs unfortunately.
Yep, I'm currently using it for my newsletter:
https://colossus.simpleisbetterthancomplex.com/newsletter/
I know that AWS SES needs domain verification or whitelisting while in "test" mode
But regardless I will try to debug and see if anything is wrong
Yes exactly. My domains and email addresses are verified. I use AWS with PHPMailer and it works fine. So I'm wondering what I did wrong in Colossus settings... If you have any idea ? Could you send me a capture of your settings (blurring the credentials of course) ?
My settings file is exactly the one in the repository at the moment, you can see the email config here:
https://github.com/vitorfs/colossus/blob/master/colossus/settings.py#L149
All the values are modified using environment variables, or a .env
file in project root directory (same directory as manage.py
file):
.env
SERVER_EMAIL=colossus@simpleisbetterthancomplex.com
DEFAULT_FROM_EMAIL=Vitor Freitas <vitor@simpleisbetterthancomplex.com>
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=smtp.mailgun.org
EMAIL_HOST_USER=myusername
EMAIL_HOST_PASSWORD=mypassword