From 18f73084e6cf4cea77b74350ecdb97b4e892b737 Mon Sep 17 00:00:00 2001 From: Martey Dodoo Date: Wed, 28 Jan 2015 09:56:17 -0500 Subject: [PATCH] Change JPEG MIME type in sendemail.py. Change MIME type from "application/image/jpg" to "image/jpeg". --- sendmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.39.5