Email attachment is not sending properly

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 = “[email protected]
@from = “[email protected]
@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