Re zipfile as email-attachment

Jürgen Kareta jkareta at vanilia.de
Mon Dec 16 11:57:10 EST 2002


Hi Martin,

many thanks for your help. After study the coherences of email i am no able
to send a zipfile as email-attachment.
I add the following lines:

self.zip_handle = open
('d:/test/python_test/testdat/Vanilia_Stamm.zip','rb')
zip_attachment = MIMEBase ( 'application','zip' )
zip_attachment.attach(self.zip_handle.read())

But when i try to open the receipt zipfile i get the following error message
:
error (c:/temp/15/Vanilia_Stamm.zip] start of central directory not found;
Zip file corrupt.  Posible cause: file transfer error. Pleas press F1 for
help.

F1 shows:
Message WZ54
This error occurred during internal Zip processing.  Correct the error and
retry the operation.

How can i solve this problem ?

Thank you in advance for any help,

Jürgen







More information about the Python-list mailing list