Add EMAIL_FROM setting to change sender email for messages

This commit is contained in:
Kyle Lacy 2023-04-15 12:51:23 -07:00
parent f757d8232b
commit e2294f9105
No known key found for this signature in database
GPG key ID: 82616D2392FB6605
7 changed files with 11 additions and 6 deletions

View file

@ -2,6 +2,7 @@
from django.core.mail import EmailMultiAlternatives
from django.template.loader import render_to_string
from django.utils.html import strip_tags
from django.conf import settings
# Third party imports
from celery import shared_task
@ -18,7 +19,7 @@ def forgot_password(first_name, email, uidb64, token, current_site):
realtivelink = f"/email-verify/?uidb64={uidb64}&token={token}/"
abs_url = "http://" + current_site + realtivelink
from_email_string = f"Team Plane <team@mailer.plane.so>"
from_email_string = settings.EMAIL_FROM
subject = f"Verify your Email!"