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:
> >
> >
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
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.NNTP( 'jsmith-ubuntu2' )
print n
impo
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
"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
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.
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
THE GOAL: I need to send an email with a simple ASCII text body and an
attached HTML file.
I have scripts that send basic emails via the smtplib module that don't
have any attachements and that seems to work fine. I first looked at the
mimetools modules but it says it is depreceated sinc