diff --git a/Contents/Server Plugin/plugin.py b/Contents/Server Plugin/plugin.py index 8048e9c..c9ba39c 100644 --- a/Contents/Server Plugin/plugin.py +++ b/Contents/Server Plugin/plugin.py @@ -253,7 +253,7 @@ def sendViaEmail(self, pluginAction, dev): # Open the files in binary mode. Let the MIMEImage class automatically # guess the specific image type. fp = open('/tmp/snap.jpg', 'rb') - img = MIMEImage(fp.read()) + img = MIMEImage(fp.read(), "jpeg") fp.close() msg.attach(img)