Email attachments and text

Jp Calderone exarkun at intarweb.us
Wed Dec 10 12:03:30 EST 2003


On Wed, Dec 10, 2003 at 08:25:35AM -0800, Mark Carter wrote:
> Section 12.2.13 (from the email module) gives examples of how to send
> attachments with emails. The problem is, it does not explain how to
> send text in the body of the message. One line of code that is gives
> is:
> outer.preamble = 'You will not see this in a MIME-aware mail
> reader.\n'
> 
> So how do I arrange it so that the text *will* be seen?

  I recommend reading the documents linked from this page:

      http://www.mhonarc.org/~ehood/MIME/

  Once you have a solid understanding of MIME (particularly the multipart
type), using the email package should present no problems.

  Jp





More information about the Python-list mailing list