Add EMAIL_FROM setting to change sender email for messages
This commit is contained in:
parent
f757d8232b
commit
e2294f9105
7 changed files with 11 additions and 6 deletions
|
|
@ -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
|
||||
|
|
@ -22,7 +23,7 @@ def project_invitation(email, project_id, token, current_site):
|
|||
relativelink = f"/project-member-invitation/{project_member_invite.id}"
|
||||
abs_url = "http://" + current_site + relativelink
|
||||
|
||||
from_email_string = f"Team Plane <team@mailer.plane.so>"
|
||||
from_email_string = settings.EMAIL_FROM
|
||||
|
||||
subject = f"{project.created_by.first_name or project.created_by.email} invited you to join {project.name} on Plane"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue