Send html email with embedded image and plain text with same image as attachment in C#
问题 I wish to send an email, with a plain text and html version. The email needs an image to go with it (not one I can host somewhere else), it should be embedded if the client views it in html, and attached for the plain text view. Is this possible to do that would work in all common clients? The closest I have come is creating the image as an attachment (rather than a linked resource) then referencing it in the html with cid:filename.jpg. However this doesn't work in gmail (it doesn't display