1
I’m trying to do an automated sending scheme using c# . NET, my problem is time to add an image in the body of the email, in which the image does not appear.
This icon appears in place of the image I’m trying to incerir:
Html of the email body:
<div>
<img src = "../ModelOdyss/Images/image.png">
</div>
The image I’m trying to insert is inside the "Images" folder and the html is inside the "Controllerodyss" folder".
Where am I going wrong ?
I just tried the change and it still doesn’t work. sera is because instead of "meusite.com" I’m using localhost ?
– Levi
Exactly... the email client will fetch the image on the internet, there is no way to search on your computer... unless your local server is configured to be visible on the internet..
– Sam
And yet you would have to put the ip or a domain that points to your server. But that’s kind of a tricky thing to do. You will only work with local server, will not go up for a hosting?
– Sam
In the future, yes. However, I would like to know if there is any way to attach this image using localhost.
– Levi
Unfortunately there is no way. The image must be on an internet server.
– Sam