I have an email written in .cshtml with an image tag:
<img src="../../../Images/logo.jpg">
the logo.jpg
image exists in MySite\Images\logo.jpg
and the email cshtml exists in MySite\Views\Mail\ContactEmail.html.cshtml
However, when I intercept the email with Papercut, there is the x
icon indicating that the image is missing. What could be causing the image not to load? It works fine when using a URL in place of the image path.
When looking at the body of the email received in Papercut, it shows the image src as:
<img src="../../../Images/logo.jpg">