email.Message question. including email attachments

sameer sameer_ at email.com
Fri Jun 7 11:44:25 EDT 2002


I am trying to use the new (since Python 2.2) email module to send
email with a pdf attachment.  I have tried various ways to send the
pdf file, but always end up corrupting the file.  Since the whole
thing only requires a few lines of Python code, can anyone here be
gracious enough to show me how to include a pdf attachment in a
Message object from the Message class defined in the email module.

Thanks!



More information about the Python-list mailing list