#353 new
Joseph Ridgway

Inline images don't work in at least Gmail and Yahoo

Reported by Joseph Ridgway | January 21st, 2010 @ 06:07 PM

Images appear as attachments, not inline images. I've tried many fixes but nothing is working yet. Has anyone had the same issue? Do inline images work for you?

Comments and changes to this ticket

  • Priit Tamboom

    Priit Tamboom April 15th, 2010 @ 01:17 AM

    A bit late with the answer, basically it adds images as attachment but currently there is no option implemented to avoid it, actually it probably should have it. Anyhow until then, you can override body_mail method at issue.rb http://github.com/svenfuchs/adva_cms/blob/master/engines/adva_newsl...

     def body_mail
       body = body_html.dup
        images.each do |image|
          body.sub!(image.uri, "cid:#{image.cid_plain}")
        end
       body
     end
    

    with just

     def body_mail
       body_html
     end
    

    Honestly I'm currently doing other project and haven't recently tested body_mail outcome, do you get correctly replaced images outcome? Or perhaps google/yahoo has disabled inline attachements as images, does other mail agents work as expected?

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>

<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>

<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>

Pages