Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install cs.htmlmailer

How to install cs.htmlmailer

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install cs.htmlmailer
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
1.0.1 Available View build log
 
License
GPL
Dependencies
Imports
Lastest release
version 1.0.1 on Jan 9th, 2014

Introduction

This small library has a method to create a MIME Multipart email object with HTML and Text content to be able to send it by e-mail.

This allows you to prepare an HTML content (with a templating language) and forget about the text representation of the HTML; just import the method and call it with the HTML content and the e-mail headers (to, cc, subject, ...)

This is the signature of the method:

def create_html_mail(subject, html, text=None, from_addr=None, to_addr=None,
                   cc_addrs=[], headers=None, encoding='UTF-8'):

Take care, html MUST BE UNICODE OBJECT!

Changelog

1.0 (2012-02-02)
  • Initial release [erral]

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.