Attached images by plain email.
Ludwig
luis.armendariz at gmail.com
Wed Feb 22 18:12:18 EST 2006
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: part
body = part.startbody('image/jpeg; name=c:\\check.jpg')
This is because \ is the escape character in strings. If you
mean a literal backslash, it has to escape itself. Hence,
you use \\
Hope that helps!
-Luis
More information about the Python-list
mailing list