Send Images in the body of the email

0

I'm trying to send an image in the body of an email. I'm putting together my html that goes in the email as follows:

<html>
  <body>
    <img style='max-height:200px; max-width: 700px; width:auto; height:auto;' src='cid:imagemEmail.jpg'>
  </body>
</html>

In outlook the image usually appears in the email. Already in gmail the image is going as an attachment. What am I doing wrong / forgetting?

    
asked by anonymous 21.08.2017 / 14:28

1 answer

1

Since Gmail is an online service, you must specify an online path to the image, for example:

<img src="http://site.com/imagem.jpg" />

That is, the image must be hosted somewhere on the internet.

    
23.08.2017 / 02:43