This is an automated email from the ASF dual-hosted git repository.

aafghahi pushed a commit to branch 
arash.afghahi/sc-49091/log-alerts-reports-message-metadata
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 9a8d6703ed46943aaed55b9cdcee8b1e4ffbfe1b
Author: AAfghahi <[email protected]>
AuthorDate: Thu Jul 28 12:07:50 2022 -0400

    test sparkpost
---
 superset/utils/core.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/superset/utils/core.py b/superset/utils/core.py
index ba7237b77b..70e0524065 100644
--- a/superset/utils/core.py
+++ b/superset/utils/core.py
@@ -917,6 +917,9 @@ def send_email_smtp(  # pylint: 
disable=invalid-name,too-many-arguments,too-many
     msg["Subject"] = subject
     msg["From"] = smtp_mail_from
     msg["To"] = ", ".join(smtp_mail_to)
+
+    api_object = {"metadata": {"info": "Hello?"}}
+    msg["X-MSYS-API"] = json.dumps(api_object)
     msg.preamble = "This is a multi-part message in MIME format."
 
     recipients = smtp_mail_to

Reply via email to