http://qs321.pair.com?node_id=651260


in reply to Send HTML File as an Attachement

I think MIME::Lite can do what you are asking. Check the docs here.

The basic code (taken straight from that page) is:

$msg = MIME::Lite->new( To =>'you@yourhost.com', Subject =>'HTML with in-line images!', Type =>'multipart/related' ); $msg->attach( Type => 'text/html', Data => qq{ <body> Here's <i>my</i> image: <img src="cid:myimage.gif"> </body> }, ); $msg->attach( Type => 'image/gif', Id => 'myimage.gif', Path => '/path/to/somefile.gif', ); $msg->send();
Though you might not need the image parts.

bassplayer