sunscrapers / django-templated-mail

Send emails using Django template system.
MIT License
95 stars 21 forks source link

Protocol should be a setting like DOMAIN and SITE_NAME #31

Open Vijayabhaskar96 opened 2 years ago

Vijayabhaskar96 commented 2 years ago

Currently, the protocol is automatically chosen by checking whether the request is secure or not, or by getting from the context. I'm using Django just for API and Vue as the frontend, both are running from docker containers with Nginx, so I can't pass the context and since Django is behind Nginx, the connection is "http" inside the container, so the protocol stays "http", it would be great If there is an option like DOMAIN that I can provide in the settings.py.