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

<img src='cid:<%= @cid %>' />

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to