How to send Inline images in Email with Python/Django? -


I am trying to send an inline image via python / Django.

The code is showing how I am doing it is still in development, so now it is done to do all this, an embedded email message is sent in which embedded in a backing bee it happens.

However, when I receive an email in my Gmail Inbox, I only see the following text: Various mime parts of email-based email are shown as text in the payload of email. I clicked the forward button and pasted the full email below - so that you can see what I get.

Can someone suggest why I am wrong here? And possible solutions?

  to: myApplication & lt; Donotrespond@mywebsite.com> Date: Tuesday, February 18, 2014 1:39 AM Subject: Hello world: myemail@gmail.com Content-type: Multipart / related; Border = "============= 5170682983005376168 ==" mime-version: 1.0 - ============== 5170682983005376168 == Content-type: text / Html; Charset = "us-ascii" MIME-version: 1.0 Content-transfer-encoding: 7bit & lt; P & gt; Hello & lt; Img src = "cid: myimage" /> gt; & Lt; / P & gt; - ============= 5170682983005376168 == Content-Type: Image / JPEG MIME-version: 1.0 Content-Transfer-Encoding: base64 Content-ID: & lt; Myimage & gt; Ivborv0KGgoAAAANSUhEUgAABSsAAAVlCAYAAAD0tpuiAAAKQWlDQlBJQ0MgUHJvZmlsZQAASA2d lndUU9kWh8 + 9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji 1wnyEFDGwVFEReXdjGsJ7601896a / Kdz39nnt9fZZ + 9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE & lt; Split a very large section & gt; Bagkiakaigaslkmnpvfkesbgkiakaakbagkiakaif0AsLKdCNTMAECBAgQIECAAAECBAgQ IECAAIGaAsLKmnPVFQECBAgQIECAAAECBAgQIECAAIF0Av8HNFl0J1BnG68AAAAASUVORK5CYII = - =============== 5170682983005376168 == -  


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -