colossus icon indicating copy to clipboard operation
colossus copied to clipboard

SMTP credentials setting not working

Open 2020rahulsharma opened this issue 2 years ago • 4 comments

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

2020rahulsharma avatar Nov 14 '21 10:11 2020rahulsharma

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

bill0alt avatar Dec 18 '21 01:12 bill0alt

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

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

2020rahulsharma avatar Dec 29 '21 05:12 2020rahulsharma

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

solução

RodrigoBRLima avatar Apr 24 '22 04:04 RodrigoBRLima

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

ramanaditya avatar Sep 11 '22 21:09 ramanaditya