Re: Using the `email' module in a bazaar plugin

2008-12-10 Thread Julian Smith
On Wed, 10 Dec 2008 12:13:28 + Matt Nordhoff <[EMAIL PROTECTED]> wrote: > Julian Smith wrote: > > I don't seem to be able to use the `email' module from within a bazaar > > plugin. Other modules work ok, e.g. nntplib. > > > > Here's my plugin, cut-down to show just the email problem: > > > >

Re: Using the `email' module in a bazaar plugin

2008-12-10 Thread Matt Nordhoff
Julian Smith wrote: > I don't seem to be able to use the `email' module from within a bazaar > plugin. Other modules work ok, e.g. nntplib. > > Here's my plugin, cut-down to show just the email problem: > > import sys > print 'sys.version', sys.version > > import nntplib > n = nntplib.NN

Re: using the email module

2006-09-28 Thread Sybren Stuvel
Erik Johnson enlightened us with: > # Ah! Yes, that works! Thank you! ;) You're welcome! Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ -- http://mail.python.org/mailman/listinfo/python-list

Re: using the email module

2006-09-28 Thread Erik Johnson
"Sybren Stuvel" wrote: > If the HTML document should really be attached, give it a > Content-Disposition: Attachment > header. Check out the accompanying headers as well, by simply emailing > yourself an attached HTML file and examining the email source. html = """\ ... """ attachment = MI

Re: using the email module

2006-09-28 Thread Tim Williams
On 28/09/06, Erik Johnson wellkeeper dot <"com>"@bag.python.org> wrote: > #!/usr/bin/env python > > import smtplib > from email.MIMEText import MIMEText > from email.MIMEMultipart import MIMEMultipart > > > # GLOBAL DATA > #= > MAIL_SERVER = 'your_server.com' > MAIL_SUBJECT = "Python.

Re: using the email module

2006-09-28 Thread Sybren Stuvel
Erik Johnson enlightened us with: > When I run this and view the email I receive in MS Outlook Express, > what I see is the HTML rendered in the body of the message, my body > is not seen anywhere and there is no attachment. If the HTML document should really be attached, give it a Content-Dis