Re: attach a pdf file to an email

2005-12-19 Thread [EMAIL PROTECTED]
also the code are useful thanks again -- http://mail.python.org/mailman/listinfo/python-list

Re: attach a pdf file to an email

2005-12-19 Thread [EMAIL PROTECTED]
Thanks I think I should use MIMEBase for any file. -- http://mail.python.org/mailman/listinfo/python-list

Re: attach a pdf file to an email

2005-12-19 Thread Larry Bates
[EMAIL PROTECTED] wrote: > Hi, I am writing a simple program that sends emails with attachments. > > I could use "MIMEImage" for .png and then attach it to an > "MIMEMultipart" object. But I couldn't or don't know how to attachment > a .pdf or something else to my emails. > > I'm new to python, c

Re: attach a pdf file to an email

2005-12-19 Thread Pelmen
here is my code for Excel outer = MIMEMultipart() outer['Subject'] = header.decode('cp1251').encode('koi8-r') outer['To'] = baseParam['mailto'] outer['From'] = baseParam['mailfrom'] outer.preamble = '' # To guarantee the message ends with a newline outer.epilogue = ''

attach a pdf file to an email

2005-12-18 Thread [EMAIL PROTECTED]
Hi, I am writing a simple program that sends emails with attachments. I could use "MIMEImage" for .png and then attach it to an "MIMEMultipart" object. But I couldn't or don't know how to attachment a .pdf or something else to my emails. I'm new to python, could somebody help me about that? Tha