Seems like you are not providing a full path to the file 'check.jpg'.
How is your program supposed to know where in the filesystem it
is located? Either that, or you have to put the file in the same
directory that on which the program is running.
Also, you should use two backslashes in the name: p
Can you help me a little bit more? Please check this out:
102 part.addheader('Content-Transfer-Encoding', 'base64')
103 body = part.startbody('image/jpeg; name=c:\check.jpg')
104 base64.encode(open('check.jpg', 'rb'), body)
105
106
base64 = ,
base64.encode = , builtin open = , body =
You are the man!
--
http://mail.python.org/mailman/listinfo/python-list
Hi Gaz,
Perhaps this will help?
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52243
--
http://mail.python.org/mailman/listinfo/python-list