add SUPPORT_NAME param
This commit is contained in:
parent
9b9a3e7d07
commit
4dfa45886e
|
@ -43,6 +43,7 @@ SENTRY_DSN = os.environ.get("SENTRY_DSN")
|
|||
NOT_SEND_EMAIL = "NOT_SEND_EMAIL" in os.environ
|
||||
EMAIL_DOMAIN = os.environ["EMAIL_DOMAIN"]
|
||||
SUPPORT_EMAIL = os.environ["SUPPORT_EMAIL"]
|
||||
SUPPORT_NAME = os.environ.get("SUPPORT_NAME", "Son from SimpleLogin")
|
||||
ADMIN_EMAIL = os.environ.get("ADMIN_EMAIL")
|
||||
try:
|
||||
MAX_NB_EMAIL_FREE_PLAN = int(os.environ["MAX_NB_EMAIL_FREE_PLAN"])
|
||||
|
|
|
@ -15,6 +15,7 @@ from app.config import (
|
|||
DKIM_PRIVATE_KEY,
|
||||
DKIM_HEADERS,
|
||||
ALIAS_DOMAINS,
|
||||
SUPPORT_NAME
|
||||
)
|
||||
from app.log import LOG
|
||||
|
||||
|
@ -183,7 +184,7 @@ def send_email(to_email, subject, plaintext, html):
|
|||
msg = EmailMessage()
|
||||
|
||||
msg["Subject"] = subject
|
||||
msg["From"] = f"Son from SimpleLogin <{SUPPORT_EMAIL}>"
|
||||
msg["From"] = f"{SUPPORT_NAME} <{SUPPORT_EMAIL}>"
|
||||
msg["To"] = to_email
|
||||
|
||||
msg.set_content(plaintext)
|
||||
|
|
|
@ -19,6 +19,7 @@ OTHER_ALIAS_DOMAINS=["domain1.com", "domain2.com"]
|
|||
|
||||
# transactional email is sent from this email address
|
||||
SUPPORT_EMAIL=support@sl.local
|
||||
SUPPORT_NAME=Son from SimpleLogin
|
||||
|
||||
# to receive general stats.
|
||||
# ADMIN_EMAIL=admin@sl.local
|
||||
|
|
Loading…
Reference in New Issue