hi friends, i m trying to send attachment with my mail. its an image file(.jpeg). but when i check my inbox it shows me image file as binary contents in tha mail itself. its not showing me an attachment. please help me. code in my model is: class MyMailer < ActionMailer::Base def sent(msg) @subject = "Abc here...!" @recipients = "xx-GVlOpdXsZis@public.gmane.org" @from = "xx-GVlOpdXsZis@public.gmane.org" @sent_on = Time.now #content_type "text/html" @body = {} part :content_type => ''text/html'', :body => msg attachment :content_type => "image/jpeg", :filename => ''#{RAILS_ROOT}/public/images/product_images/14imagesh1.jpeg'', :body => File.read("#{RAILS_ROOT}/public/images/product_images/14imagesh1.jpeg") end end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---