Forráskód Böngészése

improve email wording for test email

Son NK 5 éve
szülő
commit
727830be6b
2 módosított fájl, 6 hozzáadás és 2 törlés
  1. 5 1
      app/dashboard/views/index.py
  2. 1 1
      app/email_utils.py

+ 5 - 1
app/dashboard/views/index.py

@@ -34,11 +34,15 @@ def index():
 Hi {current_user.name}!
 
 This is a test to make sure that you receive emails sent from SimpleLogin.
+
 If you have any questions, feel free to reply to this email :).
+
 Have a nice day!
-SimpleLogin team.
+Son.
+SimpleLogin.
             """,
             )
+
             flash(
                 f"An email sent to {gen_email.email} is on its way, please check your inbox/spam folder",
                 "success",

+ 1 - 1
app/email_utils.py

@@ -40,7 +40,7 @@ def send_by_postfix(to_email, subject, content):
     msg = EmailMessage()
 
     msg["Subject"] = subject
-    msg["From"] = SUPPORT_EMAIL
+    msg["From"] = f"Son from SimpleLogin <{SUPPORT_EMAIL}>"
     msg["To"] = to_email
     msg.set_content(content)