Sorry if I'm missing a good article, but I can't find a good example on how to use inline images using ruby with the mail gem (I'm not using RoR)
The best example I could find is here, but I don't understand where the .cid
method comes from.
here's an excerpt from the above mentioned post where the .cid
method is used.
html_part do
content_type 'text/html; charset=UTF-8'
body "<img width=597 height=162 id='Banner0' src='cid:#{pic.cid}'>"
end
I have the mail gem working and it can send images as attachments but I need them to be displayed inside the email, without having the need to open attachments.