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
Hi guys. Im doing a simple CGI form to send data by email. They are for
some technicians on field so they can send daily reports about what
they made. The thing is, i dont know how to send images attached to the
email i generate with sendmail. I put the combos in the form, but i
dont know how to sa