Skip to content

Commit

Permalink
Merge pull request #2 from fredim/fix-mime
Browse files Browse the repository at this point in the history
forced jpeg so python wouldn't bail
  • Loading branch information
Chad Francis committed Mar 14, 2014
2 parents 317e621 + 3a5beaf commit 2cc83de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Contents/Server Plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2cc83de

Please sign in to comment.