aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-02-11 15:29:58 +0800
committerMilo Casagrande <milo.casagrande@linaro.org>2015-02-11 15:29:58 +0800
commit39efa5850408c7af05e770b550b8253a3e797cbf (patch)
tree8e39d9806b0ea8bb1dd5e8d1427afa8d49c7805f
parentccf04644c69c9a43a70fc0840897ce389dfddc80 (diff)
downloadkernel-ci-backend-39efa5850408c7af05e770b550b8253a3e797cbf.tar.gz
Fix email sending.
* Make sure the email has the To and From field filled correctly. Change-Id: I1d706dcb3c3101f22fba55194399bf1580ce6be2
-rw-r--r--app/utils/emails.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/utils/emails.py b/app/utils/emails.py
index d29196f..5be36c5 100644
--- a/app/utils/emails.py
+++ b/app/utils/emails.py
@@ -47,6 +47,9 @@ def send_email(to_addrs, subject, body, mail_options):
password = m_get("password")
from_addr = m_get("sender")
+ msg["From"] = from_addr
+ msg["To"] = ", ".join(to_addrs)
+
if all([from_addr, host]):
server = None
try: