From 41c6e8fd79a2f26b7d7ed767499cb97cf18ea929 Mon Sep 17 00:00:00 2001 From: Son Date: Mon, 16 May 2022 19:23:24 +0200 Subject: [PATCH] add quote --- app/email_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/email_utils.py b/app/email_utils.py index 78079acd..0c65df43 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -320,7 +320,7 @@ def send_email( msg[headers.CONTENT_TYPE] = "text/plain" msg[headers.SUBJECT] = subject - msg[headers.FROM] = f"{from_name} <{from_addr}>" + msg[headers.FROM] = f'"{from_name}" <{from_addr}>' msg[headers.TO] = to_email msg_id_header = make_msgid(domain=EMAIL_DOMAIN)