How to add embedded resource into ASP.NET MVC2 View? -


i creating emails using partial views , saving them in db (later sent). need embed image email display in gmail. how in asp.net mvc 2 project? how embed image view make work , display image in gmail?

you can't. well, not reliably anyways. @ least not in way mean. there such thing data-url's, allow embed image page, find not supported email clients , not reliable way include images.

in fact, creating emails embedded content of black art. there many gotchas various email client support have lot of research , doesn't work.

however, in general, want use embedded mime image attachment in email multi-part mime format, has nothing whatsoever mvc. in mvc create email appropriate tag (ie. <img src="cid:logo_sml.jpg">) extract mime content email, note won't see in browser, works in email client.

you might want read articles these:


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -