Send Images in the body of the email

Asked

Viewed 1,628 times

0

I am trying to send an image in the body of an email. I am mounting 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 appears normally in email. Already in gmail the image is going as attachment. What am I doing wrong/forgetting?

1 answer

1

As Gmail is an online service, you should 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.

Browser other questions tagged

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