Hi there, My issue is, and I've been at it all day now, no matter what I've tried, I cannot get inline images to work when the user receives the email via a gmail or yahoo account. I had been using MIME Lite, which works just fine for outlook/hotmail, images show up immediately with no message saying 'click here to see images'. Working as intended at this point! My question is, has anyone had success in sending emails using perl and receive the email on a gmail/yahoo account with inline images working. I've tried mail sender, mail sendmail, and mime lite so far. Below is the basic code I use currently, which again works as it should when it's going to an outlook/hotmail acount. The behavior I get from gmail is just always, 'click to display' and then all is well, but that causes an issue with that the most important thing in my email, is an image. With Yahoo, I actually can't get images to show at all, even when I click display images, they just don't; Although Yahoo is not a concern, just something else I noticed not working with current attempts.

my $msg = MIME::Lite->new( To =>'blah@blah.blah', from =>'inline@images@suq', Subject =>'HTML with in-line images!', Disposition =>'inline', Type =>'multipart/related' ); $msg->attach(Type => 'text/html', Data => qq{ <body> Here's <i>my</i> image: <img src="cid:twitter-white.jpg"> test </body> } ); $msg->attach(Type => 'image/jpeg', Id => 'twitter-white.jpg', Path => 'twitter-white.jpg', );

In reply to Sending mail via perl including inline images to gmail/yahoo by Damian_derby

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.