[Tutor] Sending email as html
lie.1296 at gmail.com
Sat Sep 6 07:12:08 CEST 2008
> Message: 3
> Date: Sat, 6 Sep 2008 00:17:43 +0100
> From: "Alan Gauld" <alan.gauld at btinternet.com>
> Subject: Re: [Tutor] Sending email as html
> To: tutor at python.org
> Message-ID: <g9semn$1cp$1 at ger.gmane.org>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
> "Tim Johnson" <tim at johnsons-web.com> wrote
> > I would appreciate examples, URLs to documentation or discussions
> > the topic
> > and even an argument to the contrary of sending email with embedded
> > html.
> The argument to the contrary is simple enough - its not secure and
> vulnerable to 'virus' type attack. For that reason many corporate
> trap or even prevent its delivery. (This is due to the ability to
> script tags with VBScript functions that on a suitably enabled PVC
> can access the local hard drive, etc)
> OTOH if they insist I assume(I've never looked at the spec for HTML
> that its just a case of inserting a boilerplate header and then
> tags to the message text. After that you should be able to send as
> plain text...
> However it might be easier (and is definitely safer) to send an HTML
> file as a mime attachment which gives the recipient some control over
> how/when it is opened. But if mime is OK you could use PDF which
> is safer still and the best format for when accurate layout needs to
> be transmitted in a portable format. Unfortunately there are now
> programs which can edit PDFs which has somewhat destroyed
> their value as a read-only document format for contracts, invoices
If you have used tried using any PDF editor for more than correcting
typos, you'd still consider it as a read-only document. Since PDF's file
isn't intended to be edited the format makes it hard for editors to have
a convenient interface, most significantly is that texts are chopped and
tables are turned into lines. It's just like erasing a form with a
correction fluid "a kludge".
> But for portable layout they are still the best option.
> Alan G.
More information about the Tutor