MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Rich Text



On Mon, 29 Nov 1999, Ryan Hertz wrote:
> ><Pete@pbingham.freeserve.co.uk>     ******
> >
> >I thought it would be good to send customers nice receipts in Rich Text
> >(HTML) format. The formatting of the e-mail usually looks a mess when the
> >recipients default font is not fixed-width. It would be nice to display the
> >ordered items in a table, with costs subtotals etc in neat columns. I
> >achieved little from messing around with mime tags, headers, boundaries etc.
> >Has anyone out there managed to achieve this with the current tags
> >available?
> 
>          Well, the minivend built-in plaintext formatting commands work 
> great for me, EXCEPT when special characters are used (registered trademark 
> &reg, copyright &copy, ampersand &amp, etc.)  Minivend considers those in 
> its width calculations...  Which, I know, are HTML escaped values.  I don't 
> blame it.  But, I've considered going to HTML e-mails, even though I hate them!

I use this on the description column to strip out html 

UserTag strip_html HasEndTag 1 
UserTag strip_html Routine <<EOR
sub {
	my ($input) = @_;
	$input =~ s:<\w+>::g; 
	$input =~ s:<\/\w+>::g;
	$input =~ s:&\w+;::g;  
	return $input;  
} 
EOR

If I got an HTML receipt I think it would be the last time I shopped
at that store.

Dan
-- 
 Dan Busarow                                                  949 443 4172
 Dana Point Communications, Inc.                            dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82



Search for: Match: Format: Sort by: