vitorfs / colossus

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

SMTP credentials setting not working #44

Open 2020rahulsharma opened 2 years ago

2020rahulsharma commented 2 years ago

the SMTP credentials setting inside mailing list does not work , i mean the host user and password get stored in the database but django doesn't use that data for email host user and password . what to do now?? how to fix this problem ?? i want to dynamically change the email setting after the app is hosted online

bill0alt commented 2 years ago

@2020rahulsharma did you find a solution to make the app send emails properly?

2020rahulsharma commented 2 years ago

@2020rahulsharma did you find a solution to make the app send emails properly?

no i haven't found any solution for this :(

RodrigoBRLima commented 2 years ago

https://stackoverflow.com/questions/10384657/django-send-mail-not-working-no-email-delivered

solução

ramanaditya commented 1 year ago

As of now, the current version doesn't support reading EMAIL_HOST and PASSWORD from the database.

I fixed this and created a PR. You can use the changed code pieces.

Another Solution is instead of storing it in the database, you should set the env variables EMAIL_HOST_USER, EMAIL_HOST_PASSWORD, EMAIL_HOST, EMAIL_PORT as Django by default use the keys from the environment

I hope this works