vitorfs / colossus

Self-hosted email marketing solution
https://colossus.readthedocs.io
MIT License
514 stars 128 forks source link

500 Server Error when trying to import contacts through paste on Heroku #24

Closed alexauvray closed 5 years ago

alexauvray commented 6 years ago

image

vitorfs commented 6 years ago

Can you provide some further info from the logs please? It will help investigating the issue

alexauvray commented 6 years ago

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.

vitorfs commented 6 years ago

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

alexauvray commented 6 years ago

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) ?

vitorfs commented 6 years ago

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