also the code are useful thanks again
--
http://mail.python.org/mailman/listinfo/python-list
Thanks
I think I should use MIMEBase for any file.
--
http://mail.python.org/mailman/listinfo/python-list
[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
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 = ''
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