> Content type is JPEG. File you're reading is PNG.
Yeah, I noticed this too, but according to the book I'm reading this
should work.
I tried sending a jpg as an attachment (instead of a png), but with the
same result. I also tried:
attachment :content_type => "image/png", :body =>
File.read("public/images/rails.png")
but again, in the mail the image displays as broken and when I download
it I cannot open it.
Could I be doing anything else wrong?
Thanks very much.
--
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 [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.