AlternateView htmlView = AlternateView.CreateAlternateViewFromString(message.Body, null, "text/html"); LinkedResource logo = new LinkedResource(Server.MapPath(".") + @"\<%# ImageHandler.ashx?ID=CanvasDaddy'%>", "image/gif"); logo.ContentId = "<%# ImageHandler.ashx?ID=CanvasDaddy'%>"; logo.TransferEncoding = System.Net.Mime.TransferEncoding.Base64; htmlView.LinkedResources.Add(logo);
<img alt=\"\" hspace=0 src=\'<%# ImageHandler.ashx?ID=CanvasDaddy'%>\' />
ASHX Handler
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)