From fac592a0f6a96889437a76bcc7c8c464aa401538 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 27 Sep 2015 20:28:09 +0300 Subject: [PATCH] sendmail: destination email address is now used as "from" --- motioneye/sendmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motioneye/sendmail.py b/motioneye/sendmail.py index 10746f1..5c64556 100644 --- a/motioneye/sendmail.py +++ b/motioneye/sendmail.py @@ -53,7 +53,7 @@ def send_mail(server, port, account, password, tls, to, subject, message, files) if account and password: conn.login(account, password) - _from = account or 'motioneye@' + socket.gethostname() + _from = 'motionEye on %s <%s>' % (socket.gethostname(), to[0]) email = MIMEMultipart() email['Subject'] = subject -- 2.39.5