Re: using the email module
- From: "Erik Johnson" <ej at wellkeeper dot com>
- Date: Thu, 28 Sep 2006 12:31:19 -0600
"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 = """\
<html>
....
</html>
"""
attachment = MIMEText(html, 'html')
attachment['Content-Disposition'] = 'attachment; filename="sample.html"'
msg.attach(attachment)
# Ah! Yes, that works! Thank you! ;)
.
- References:
- using the email module
- From: Erik Johnson
- Re: using the email module
- From: Sybren Stuvel
- using the email module
- Prev by Date: Re: Python and Win95B
- Next by Date: Re: License / Registration key enabled software
- Previous by thread: Re: using the email module
- Next by thread: Re: using the email module
- Index(es):
Relevant Pages
|