<?xml version="1.0" encoding="windows-1252"?>
<node id="651260" title="Re: Send HTML File as an Attachement" created="2007-11-16 11:36:19" updated="2007-11-16 06:36:19">
<type id="11">
note</type>
<author id="149104">
bassplayer</author>
<data>
<field name="doctext">
&lt;p&gt;I think [cpan://MIME::Lite] can do what you are asking.  Check the docs [http://search.cpan.org/~rjbs/MIME-Lite-3.020/lib/MIME/Lite.pm#Send_an_HTML_document..._with_images_included!|here].&lt;/p&gt;

&lt;p&gt;The basic code (taken straight from that page) is:&lt;/p&gt;
&lt;code&gt;
$msg = MIME::Lite-&gt;new(
    To      =&gt;'you@yourhost.com',
    Subject =&gt;'HTML with in-line images!',
    Type    =&gt;'multipart/related'
);
$msg-&gt;attach(
    Type =&gt; 'text/html',
    Data =&gt; qq{
        &lt;body&gt;
            Here's &lt;i&gt;my&lt;/i&gt; image:
            &lt;img src="cid:myimage.gif"&gt;
        &lt;/body&gt;
    },
);
$msg-&gt;attach(
    Type =&gt; 'image/gif',
    Id   =&gt; 'myimage.gif',
    Path =&gt; '/path/to/somefile.gif',
);
$msg-&gt;send();
&lt;/code&gt;

Though you might not need the image parts.

&lt;div class="pmsig"&gt;&lt;div class="pmsig-149104"&gt;
&lt;p&gt;
bassplayer
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
651205</field>
<field name="parent_node">
651205</field>
</data>
</node>
