Would anyone please share the code to embed images using CID technique?
I have tried following code but no luck.
mail = Mail.new do
from recipient
to recipient
subject 'Here is thdddfdfe image you wanted'
html_part do
content_type 'text/html; charset=UTF-8'
body '<img src="cid:sdwewewe122332mmdd" />sddddfff'
end
add_file :filename => 'somefile.png', :cid => 'sdwewewe122332mmdd', :content => open('
http://www.wwm.com/assets/contactimage.jpg').read end