Inline Attachment for mail

I need to attach images to the mails which are going from my
application. I have followed the comments and guidelines said in
http://blog.thoughtobject.com/2007/05/26/5/

The mail which is received by the user has both image and message
content.

But the image which im getting doesnt gets fixed the place where it is
specified.

Images gets seperated from the message content.

At the end of the mail all the image are displayed…

in mailer.rb i have used as

@cid = Time.now.to_f.to_s + “[email protected]
inline_attachment :content_type => “image/gif”,
:body => File.read("#{RAILS_ROOT}/public/images/
mails_images/abc.jpg)
:filename => abc.jpg
:cid => “<#{@cid}>”

and in view i called as

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs