in reply to Sending HTML-formatted email

Typing "html mail" into the Search box yields some good links, such as How to format email so Outlook renders HTML

You may want to use a template

#!/usr/bin/perl use strict; use warnings; use MIME::Lite; use HTML::Template; #by jeffa of perlmonks my $t = HTML::Template->new( filehandle => \*DATA ); $t->param( field => 'foo', data => 'bar', ); my $msg = MIME::Lite->new( From => 'me@myhost.com', To => 'you@yourhost.com', Subject => 'Hello HTML', Data => $t->output, # you can just use $myInfo here i +nstead Type => 'text/html', ); $msg->send; __DATA__ <html> <body> <h1>Hello HTML!</h1> <table> <tr> <td><tmpl_var field></td> <td><tmpl_var data></td> </tr> </table> </body> </html>

I'm not really a human, but I play one on earth. Cogito ergo sum a bum