Mobile app version of vmapp.org
Login or Join
Gail5422790

: Images sent from my site is not being displayed in my gmail account anymore I use wordpress cms. I have built a simple email system wherein people can select posts. The code pulls the featured

@Gail5422790

Posted in: #Gmail #Wordpress

I use wordpress cms. I have built a simple email system wherein people can select posts. The code pulls the featured image of each selected post. On submit the images are sent to my gmail account with some html text content.

Problem is it is just displaying the links to those images, instead of the images itself. In my gmail account, I have this set Settings=>General=>Images=>Always display external images. Here is a visual reference.



OBSERVATION - I can say that my code is alright as the images display fine in my outlook.com's email account and also because it had been displaying in the gmail account itself until very recently. Other observation is when I access the same gmail account in my smartphone, the image div seems to be empty with only the border and a tiny icon in the middle.

Do not want you to miss out anything so in case it is relevant - The one thing that I tried a few days ago was setup an SMTP email setup with smtp.gmail.com using the login credentials of the same gmail account. At first I got a suspicious login attempt warning but the email setup worked fine after I added it as an exception.

I wonder what is happening, any ideas on what to try.



EFFORT UPDATES

FIRST UPDATE : I have tried sending to an alternative gmail account but the outcome is the same, displays only the links instead of images. If you must also know I have my site hosted on hostgator.com and the email sent is via gator3897.hostgator.com.



SECOND UPDATE : As asked in the question here is an example of what my image's html looks like when clicked in the show-original in gmail. As I said this renders beautifully as intended in my outlook account so the mistake shouldnot be in the code.

<html><body>
<a href="http://examplewebsite.com/link-to-some-post/">
<img src="http://examplewebsite.com/media/2014/04/example.jpg" class="attachment-class" alt="some alt text"
height="300" width="230">
</a>
</body></html>




THIRD UPDATE :
I checked to see how it appears in chrome. Turns out it still does not display the image as intended but it does not turn into links, instead it appears as empty divs. It appears the same way in my smartphone. Screenshot below.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gail5422790

1 Comments

Sorted by latest first Latest Oldest Best

 

@Vandalay111

Mail servers like Gmail, yahoo, hotmail and others always block images from displaying as a security measure.

If the images in your email templates are embedded correctly, you should not worry about anything as this is something from the receiver's mailbox.

This is not considered as an issue, the receiver get an option in the email header "Display images" and once they click on it, they will see the images. This is something that you do not have any control over.

If you like to control both behaviors i.e. the display or non-display of images in Gmail, dive into Gmail Settings.


Click the gear icon in the upper right, and then select Settings.
Scroll to the External content section. Select Ask before displaying external content. Alternatively, you can select Always display external content.


Gmail



3.Click Save Changes.

OR

Check one more thing :

In case the images in your email are not appearing in GMail, then you might need to disable the HTTPS settings

To disable the HTTPS for your gmail account

Log in to your Gmail account.
Click "Settings" in the right corner.
Scroll to the Browser Connection, under the General tab and check "Don't always use https".
Click "Save Changes"
Log out of Gmail.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme