Problems with HTML images sent to email

Asked

Viewed 644 times

2

I did several tests using an image with absolute path. Inside the intranet works perfectly, but in the extranet (GMAIL/OUTLOOK) does not work at all. Someone can help?

  • @Luisalmeida Yes, they are available, the image has been adjusted and published in production, I am using the absolute path, but sometimes appears without formatting in gmail/outlook, sometimes it does not appear. I’ve tried using inline css and more, it doesn’t work! Funny that corporate email works perfectly.

  • in some part of your code you are using Tables?

  • @Luísalmeida yes, < table cellpadding="0" cellspacing="0" border="0" background="https://exemplo.com/imagem_examplo.jpg" witdh="550" height="750"> .

  • @Luísalmeida Ja put the background in the <td> and also appeared disfigured.

  • I edited the answer I had given earlier. Please check.

  • Checking in here!

  • @Luisa Almeida checked, appeared as before, the image cut. Remembering that the image is in absolute path. Before the problem already existed, the image was allocated in the site’s root directory, and it was published in production with the same dimensions to see if it solved this problem of external email visualization.

Show 2 more comments

1 answer

1


Check where you are fetching the images. If these images are available externally...

Images to be accessible must be somewhere available on the internet. example: ftp...

Put it like this:

<table style="font-size:0;" cellpadding="0" cellspacing="0" border="0" background="exemplo.com/imagem_examplo.jpg"; witdh="550" height="750">

Browser other questions tagged

You are not signed in. Login or sign up in order to post.