From: Martey Dodoo Date: Wed, 28 Jan 2015 14:56:17 +0000 (-0500) Subject: Change JPEG MIME type in sendemail.py. X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=18f73084e6cf4cea77b74350ecdb97b4e892b737;p=motioneye-debian Change JPEG MIME type in sendemail.py. Change MIME type from "application/image/jpg" to "image/jpeg". --- diff --git a/sendmail.py b/sendmail.py index 4ecbcb5..151cee0 100755 --- a/sendmail.py +++ b/sendmail.py @@ -70,7 +70,7 @@ def send_mail(server, port, account, password, tls, to, subject, message, files) email.attach(MIMEText(message)) for file in reversed(files): - part = MIMEBase('application', 'image/jpg') + part = MIMEBase('image', 'jpeg') with open(file, 'rb') as f: part.set_payload(f.read())