Closed alasdair-richardson closed 4 months ago
Sorry posted in the wrong place initially (as a comment to the welcome to the discussion post)! Not even sure if this is an issue or whether it should just be a discussion.
I think the problem is your HTML text:
<p>Test email only to home</p><br><img src="cid:UI2XSAZ99NU4.N2IWIPJM9Q2V1@alasdair-lt" alt="Assets/small.png>
Notice the lack of an end-quote for the alt-text.
Change your code to this:
var toAdd = $"<br><img src=\"cid:{contentId}\" alt=\"{signatureFile}\">";
D'oh I thought I might be missing something simple but not that simple!. Thanks for your reponse it is working exactly as it is supposed to now.
I was trying to add an image as an in line signature, following the instructions on github. The code for my send method which added the image looked like this
Unfortunately the image does not appear inline as expected. The relevant part of the eml file looks like
In thunderbird the result looks like
And in gmail
Originally posted by @alasdair-richardson in https://github.com/jstedfast/MimeKit/discussions/953#discussioncomment-9703931