SendGrid - Image not showing up in HTML email
问题 I am using the SendGrid v3 API and C# library (v7) to send an email. In my email I have a header which is a png. The header is embedded like this: <img src="cid:emailheader"/> In the C# code I send the image as an attachment with with the same ContentId var mail = new Mail(from, subject, to, content); var headerPath = HttpContext.Current.Server.MapPath("~/Resources/email-header.png"); var attachment = new SendGrid.Helpers.Mail.Attachment(); attachment.ContentId = "emailheader"; attachment