[Chicago-talk] Mime::Lite HTML question
imran javaid
imranjj at gmail.com
Wed Apr 13 14:30:05 PDT 2011
Can you try running it with the following changes?
<img src="cid:gator_head.gif alt:"save the gators"/>
to
<img src="cid:gator_head.gif" alt="save the gators"/>
and
Type => 'image/jpg',
to
Type => 'image/gif',
-imran
On Wed, Apr 13, 2011 at 4:09 PM, Richard Reina <richard at rushlogistics.com>wrote:
> 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.
>
> Richard
>
> #!/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'
> );
> $msg->attach(
> Type => 'text/html',
> Data => qq{
> <body>
> Here's <i>my</i> image:
> <img src="cid:gator_head.gif alt:"save the gators"/>
> </body>
> },
> );
> $msg->attach(
> Type => 'image/jpg',
> Id => 'gator_head.gif',
> Path => '/home/richard/gator_head.gif',
> );
> $msg->send();
>
> --
> Richard Reina
> Rush Logistics, Inc.
> Watch our 3 minute movie:
> http://www.rushlogistics.com/movie
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20110413/779c045d/attachment.html>
More information about the Chicago-talk
mailing list