Here is my image tag :
string target = "http://localhost:8699/setup/getcompanysignature?companyId="+CompanyId;
string image = "<img src='"+target+"'alt='LogoImage'title='logoImage'style='display:block'width='50'height='70'>"
Gmail is returning 404 in the console and is not loading image in email body but the image src URL is working fine and is returning image.
here is what I tried:
- Changed image settings in Gmail
- cleared cache
- changed image type from jpeg to png
- applied height, width, and title attributes
- made sure that there are no spaces in the URL.
- and all that as suggested in the following:
But still, my issue is not resolved. One thing I am not sure about is that google gets images from trusted sources and secured URLs. If it is, then how can I test my code on localhost? Any kind of help will be appreciated.