generating emails from Python

Larry Bates lbates at syscononline.com
Thu Oct 7 09:37:30 EDT 2004


Michele Simionato wrote:
> Is it possible, using email.MIMEMessage, to generate an email with
> both HTML and plain text content, in such a way that:
> 1) it is displayed as HTML if the email client recognizes HTML;
> 2) it is displayed as plain text if the email client is HTML impaired?
> 
> I realize that the answer is most probably no, but one can always hope
> ...
> 
>       Michele Simionato

Google is your friend:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/67083

Larry Bates



More information about the Python-list mailing list