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 +
"abc-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org"
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.