]> www.vanbest.org Git - motioneye-debian/commitdiff
Change JPEG MIME type in sendemail.py.
authorMartey Dodoo <martey@marteydodoo.com>
Wed, 28 Jan 2015 14:56:17 +0000 (09:56 -0500)
committerMartey Dodoo <martey@marteydodoo.com>
Wed, 28 Jan 2015 14:56:17 +0000 (09:56 -0500)
Change MIME type from "application/image/jpg" to "image/jpeg".

sendmail.py

index 4ecbcb51456967a09cb372502e8c381a14110d89..151cee0dc31de731c7e101d979ce3476e3967eb0 100755 (executable)
@@ -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())