0

i want to send gif inside email with PHPMailer but I'm unsuccessful here's what I'm trying

<img src="banner.gif" alt="banner"><br>

but it doesn't work I don't know why

Aditya
  • 3
  • 3
  • 2
    You'll need to specify an absolute url as rhe source. Otherwise which webserver should the email client fetch the image from? It does not know...the html is not being viewed inside your website, remember. Or you can try to embed it as a cid image – ADyson Jan 19 '22 at 06:51
  • 1
    Does this answer your question? [Send email with PHPMailer - embed image in body](https://stackoverflow.com/questions/3708153/send-email-with-phpmailer-embed-image-in-body) – Hendrik Jan 19 '22 at 09:30
  • Sorry but it didn't work out for me neither the thread nor the cid image. i don't know but my pc wasn't inserting image that is stored locally on my pc so what i did was to host the image some where like - https://telegra.ph (5 mb image limit) and copied the direct link of the image and did img src inside html! and boom, it worked. – Aditya Jan 28 '22 at 15:49

0 Answers0