Displaying an image to sending email in django
<p>I would like to send an email containing the HTML email sent goes well with text by cons if my HTML content contains an image and it is not displayed.
Besides if I try to view the HTML template in the local picture is displayed correctly.
How to display the image in the HTML content?</p>

<p><strong>HTML Content</strong></p>

<pre><code>&lt;!DOCTYPE html&gt;
{% load static %}
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;style&gt;
        body{
            background-color: gray;
            color: red;
        }
        div, #globale{
            background-color:#eee;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
        &lt;!--&lt;img src=" {% static "Kamal.png" %}" alt="image"/&gt;--&gt;
        &lt;!-&lt;img src="{% static "Kamal.png" %}" alt="image"/&gt;--&gt;
        &lt;div id="globale"&gt;
            &lt;p&gt;
                Convert the filename, content, mimetype triple into a MIME attachment
                object. Adjust headers to use Content-ID where applicable.
                Taken from &lt;img src="Kamal.png" alt=" Mon Image "/&gt;
                HTML is the method of choice for those wishing to send emails with rich
                text, layout and graphics. Often it is desirable to embed the graphics
                within the message so recipients can display the message directly,
                without further downloads.
                &lt;img src="{% static "Kamal.png" %}" alt=" Mon Image "/&gt;
                Some mail agents don't support HTML or their users prefer to receive
                plain text messages. Senders of HTML messages should include a plain
                text message as an alternate for these users.
                &lt;img src="Kamal.png" /&gt;
                This recipe sends a short HTML message with a single embedded image
                and an alternate plain text message.
            &lt;/p&gt;
            &lt;h3&gt;Message Reussi avec Image&lt;/h3&gt;
        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>