I am using MailKit / MimeKit 1.2.7 (latest version of NuGet).
I tried to embed the image in the HTML body of my letter, following the sample API documentation (section "Using BodyBuilder").
My current code is as follows:
var builder = new BodyBuilder(); builder.HtmlBody = @"<p>Hey!</p><img src=""Image.png"">"; var pathImage = Path.Combine(Misc.GetPathOfExecutingAssembly(), "Image.png"); builder.LinkedResources.Add(pathLogoFile); message.Body = builder.ToMessageBody();
I can send this letter, and actually an image attached to the letter. But it is not .
Am I missing something? Or is it an Apple Mail error (is it the email client I use to receive email)?
I am grateful for any idea (and many thanks to Jeffrey Steadfest for providing such wonderful tools!).
Ingmar
c # mimekit
Ingmar
source share