The mime.py module allows structured access to messages in MIME format. mimeheader.py allows encoding/decoding of rfc2047 strings (only limited length supported) sendmail.py demonstrates creation of message with attached another message