Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am sending image in my mail body like this

<img src='https://testingwebsite.com/Images/logo_ms.png' class='ms-logo' alt='ms-logo' border-collapse='collapse' border-spacing='0' style='width:140px; border: 0 !important;outline: none !important;display: block !important;float:left;'>


When mail was send in gmail

it show following url

<img src="https://ci4.googleusercontent.com/proxy/CXOTiXQfFvLobaURAreZLXyEmsnu9yhVDyNfCPGtfR3yDhUnmX8ckQVVaDaDC4gKTt_zmIJQysKynY0z5RCTgA=s0-d-e1-ft#https://testingwebsite.com/Images/logo_ms.png" alt="img" title="Logo" style="width:140px;border:0!important;outline:none!important;display:block!important;float:left" class="CToWUd">


its appending something before my
<img url>


Can anyone on help me on this

What I have tried:

i tried many thing but not get successes
Posted
Updated 2-Jul-20 21:23pm

Google's Gmail website automatically blocks many email images until it's sure the messages are coming from a trusted source.>

Gmail blocks only images that are stored on another website. Spammers often use linked images to verify that your email address is real so they can send you more junk mail or sell your address. Others use linked images to track the time and date you view an email, often making the image so small you don't even see it.
 
Share this answer
 
That's because most email systems deliberately will not display images from other domains - spammers were using them to identify "live" email addresses, as you can server the image and note where it came from if you try slightly hard. That gives you a list of monitored email addresses which are obviously the best target for spammers / phishers.
Once identified, your email can be sold as part of an "active" list to many, many nefarious people ...

The only real way round that is to embed your image as a base64 string in your email body instead of using an HTML URL image tag.
 
Share this answer
 
Comments
Akshay malvankar 3-Jul-20 3:58am    
Email is active and valid
OriginalGriff 3-Jul-20 4:39am    
Yes, we know - and that's the point.
Detecting "active" emails is an advantage to spammers - they can target those and ignore ones like my "DontSendMeAnyCrap@MyDomain.com" which are not monitored (that one actually has an autodelete rule - any incoming email is deleted immediately it is received).
Targeting "live" emails only vastly improves their chances of cheating real people, so lists of monitored email addresses are valuable products.

And since you can't tell if I read an email from you, one way to tell if I do is to embed an image - even a tiny one pixel one - that comes from your domain and use the email renderer to display it. That lets the spammer know your email is live and monitored, even if you discard the email immediately.

So most email systems don't display them, they don't even download them and teh spammer has no idea if you read the mail or not. You can;t get round that, except by embedding the image data in the email body so it doesn't have to be retrieved.
Richard Deeming 3-Jul-20 6:47am    
You don't have to use data: URIs and base64 encoded images; you can add the image as an "embedded resource" and refer to it using its content ID.

How do I embed images in an email?[^]
Akshay malvankar 4-Jul-20 8:05am    
img src = cid:HDIImage
Akshay malvankar 4-Jul-20 8:06am    
Dim logo As LinkedResource = Nothing
Dim Path As String = Server.MapPath("../Images/mob1.jpg")
logo = New LinkedResource(Path, MediaTypeNames.Image.Jpeg)
logo.ContentId = "Logo_Ms"

Dim imageContent1 As String = img src = cid : HDIImage

Dim str_mail As String = html body + imageContent1 + body html

i try this also pls igonre syntax i am not able to post it here

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900