Image is not displayed?

I am trying to send an image in email template while sending mail to user. But images is not displayed in the mail. Why?

{% load static %}

<img src="{% static 'img/logo.png' %}" width="125" height="120" style="display: block; border: 0px;" />

Mail
image

Apart from this, mail template is working fine to computer.

Also you can issue by your self by creating account which requires only your email and then a mail will be sent to you for confirmation of your emial address where you can see why this image is not displayed. Website link is below.

https://app.barter.monster

Look at the html of the email source in your email client.
Verify that the url being generated is accessible as a url, by your email client.

Kindly check the html of email source by yourself by creating account at the website. Website is currently at beta stage you can enter email for registration and then an email will sent to you in mail where you can see why this image is not displayed.

https://app.barter.monster

Sorry, no. This is your project. You should be looking to learn and develop the skills necessary to diagnose problems. Identifying the source or cause of a problem is an important step in fixing something that is wrong. Being familiar with all the different ways to gather useful information is one of those skills needed.

2 Likes

I had the same issue and immediately I saw your comment, I closed my browser and went back to my code. Guess what? I fixed the bug under 5mins. Am so happy… Thanks for the comment man, now I can face any bug hahaha

and what is your solution?