From: Calin Crisan Date: Sun, 27 Sep 2015 17:28:09 +0000 (+0300) Subject: sendmail: destination email address is now used as "from" X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=fac592a0f6a96889437a76bcc7c8c464aa401538;p=motioneye-debian sendmail: destination email address is now used as "from" --- 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