[Tutor] Sending email as html

johnf jfabiani at yolo.com
Sat Sep 6 05:19:47 CEST 2008


On Friday 05 September 2008 05:03:30 pm Ted Roche wrote:
> On Fri, Sep 5, 2008 at 6:42 PM, Tim Johnson <tim at johnsons-web.com> wrote:
> > I've been using smtplib for years to send plain text emails
> > programmatically. Now I have a customer who is requesting that I (at
> > least) investigate sending invoices by email as html.
>
> I'm a big fan of sending invoices as PDFs. The invoices can have as
> rich text and graphics as you want, print well, and work
> cross-platform.
>
> > I would appreciate examples, URLs to documentation or discussions of the
> > topic and even an argument to the contrary of sending email with embedded
> > html.
>
> Google "HTML Email is Evil" for a pretty succinct summary.
To expand on what Ted has suggested you can use ghostscript to create the 
PDF's on windows, linux and Mac.  I have been doing it from VFP (Visual 
FoxPro) programs and from python for years.  The invoices look very 
professional and are just added to the email as an attachment.


-- 
John Fabiani


More information about the Tutor mailing list