--- title: "[How Do I:] Embed an Image in an Email with ASP.NET | Microsoft Docs" author: rick-anderson description: "Chris Pels shows how to embed an image in an email with ASP.NET. He creates a web form (with fields for To, From, Subject, and Body), uses the AlternateView..." ms.author: aspnetcontent manager: wpickett ms.date: 11/06/2008 ms.topic: article ms.assetid: 424788ac-0a43-4063-99e7-db5aa4c66a9d ms.technology: dotnet-webforms ms.prod: .net-framework msc.legacyurl: /web-forms/videos/how-do-i/how-do-i-embed-an-image-in-an-email-with-aspnet msc.type: video --- [How Do I:] Embed an Image in an Email with ASP.NET ==================== by [Chris Pels](https://twitter.com/chrispels) Chris Pels shows how to embed an image in an email with ASP.NET. He creates a web form (with fields for To, From, Subject, and Body), uses the AlternateView class to create text and HTML versions of an email, stores an image in a LinkedResource class instance, embeds it in the HTML AlternateView. He then adds both versions to the MailMessage object and sends the email twice, first with HTML-receiving capabilities enabled and then as text-only. Both email messages appear in Outlook. The HTML version shows the embedded image; the text version does not. [▶ Watch video (19 minutes)](https://channel9.msdn.com/Blogs/ASP-NET-Site-Videos/how-do-i-embed-an-image-in-an-email-with-aspnet)