I'm developing a web app locally, which sends emails for password reset, etc.
The emails are HTML and reference images using the full domain, i.e.
However, I also use en… (read more)
I'm developing a web app locally, which sends emails for password reset, etc.
The emails are HTML and reference images using the full domain, i.e.
However, I also use entries in etc\hosts for different apps, e.g.
myapp.localdev.com 127.0.0.1
That works perfectly fine in Firefox when I look at an image directly using the url, e.g.: https://myapp.localdev.com/images/myimage.png
However, when that image is referenced in the email HTML, it does not appear in Thunderbird. If I use
then it does appear fine in the email. But if I use
it does not appear at all - only the ALT text appears.
I've checked the IIS logs and I can see requests for the image from Firefox, but not from Thunderbird, hence my suspicion is Thunderbird is ignoring the etc\hosts file mapping. It looks like Thunderbird is trying to find the domain on the internet instead of locally.
Is there a way of making Thunderbird respect the hosts file mapping, if that indeed is the problem? Or how I can test for that in Thunderbird?