[Chicago-talk] Mime::Lite HTML question

Richard Reina richard at rushlogistics.com
Wed Apr 13 14:09:19 PDT 2011

I using the code below to try to get image in the signature of an email. It works but the the name of the image appears next to it.  Does anyone know how I can get it to appear more embeded so that the name of the file does not appear?

Thanks for any help.


#!/usr/bin/perl -w
use strict;
use MIME::Lite;

# SendTo email id
my $email = 'gatorreina at gmail.com';

    my $msg = MIME::Lite->new(
         To      =>$email,
         Subject =>'HTML with in-line image!',
         Type    =>'multipart/related'
        Type => 'text/html',
        Data => qq{
                Here's <i>my</i> image:
                <img src="cid:gator_head.gif alt:"save the gators"/>
        Type => 'image/jpg',
        Id   => 'gator_head.gif',
        Path => '/home/richard/gator_head.gif',

Richard Reina
Rush Logistics, Inc.
Watch our 3 minute movie: 

More information about the Chicago-talk mailing list