I have a HTML email template in the App_Data folder of my MVC application. In my code, I use this template to send HTML emails to users. This template references a few images in a folder in my project. The issue is that these images don’t appear at all when the user receives the email. I have tried to reference the images using ~/path to image/image.gif. I have tried using ../../path to image/image.gif and I have copied the images to the App_Data folder and just referenced the images thus image.gif. Nothing is working. Does anyone have any suggestions?
I have a HTML email template in the App_Data folder of my MVC application.
Share
the images either need to be stored in a publicly accessible location with a full reference to the image
<img src="http://my.domain.com/images/filename.ext" />or the images need to be embedded into the email.