[Rails ] Send mail and embed image

Hello Comrades,

I’m using ActionMailer.
How to send mail with embed image.?
My rails version is 2.3.5

Can anyone help me ?


You could send your email "multi-part". For this you normally need 2
templates - html and txt. In the html template, you can include images
as with normal html, and if the recipient accepts html format emails,
he will see the image (otherwise he gets the txt version). See more
here http://edgeguides.rubyonrails.org/action_mailer_basics.html#sending-multipart-emails.