Skip to Content
0
Feb 05, 2020 at 03:59 PM

HCI/CPI: GMail multipart image and link problem

105 Views

HI I'm trying to send an html Email with Mail adapter and open it with Google Eebmail client.

I can't find the right solution, the email is showed like mix text and html.

I tried same operation directly with gmail and email source is different and correct.

Mail Formed on HCI:
Content-Type: text/html; charset=UTF-8

...

<br>
<a href=3D"https://www.site.com/welcome/">
<img src=3D"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjIAAAIbCAYAAADxb=
3SnAAAgAElEQVR4Xuy9y7IkWXZkd/x5742obIIEhBhRhKMeccgPqG/jZ/TPAD/AGUnBs1ANVKMA=
Ak0pMDPi+tsoqkv1mGeT4xamiAekkPHwa2527Jz90K1b92a8fr1W4LUCrxV4rcBrBV4r8FqBX+g= 
....
"/></a>
<br>

Result:

Mail created by GMail directly:
Content-Type: multipart/related; boundary="000000000000ed0b39059dd531e3"

--000000000000ed0b39059dd531e3
Content-Type: multipart/alternative; boundary="000000000000ed0b37059dd531e2"

--000000000000ed0b37059dd531e2
Content-Type: text/plain; charset="UTF-8"

[image: https://www.site.com/welcome/]
<https://www.site.com/welcome/>

--000000000000ed0b37059dd531e2
Content-Type: text/html; charset="UTF-8"

<div><a href="https://www.site.com/welcome/"><img src="cid:ii_k69f8rdn0" alt="https://www.site.com/welcome/" width="542" height="520"></a><br></div>

--000000000000ed0b37059dd531e2--
--000000000000ed0b39059dd531e3
Content-Type: image/png; name="welcome.png"
Content-Disposition: attachment; filename="welcome.png"
Content-Transfer-Encoding: base64
X-Attachment-Id: ii_k69f8rdn0
Content-ID: <ii_k69f8rdn0>
--000000000000ed0b39059dd531e3--

Result:

Is it possible to reach same result on HCI/CPI ?

Thanks:

Federico Bellizia

ps. on Outlook and Gmail app is all correct but not in Gmail by browser.

Attachments

hci-mail-fail.png (94.9 kB)
busta.png (475.5 kB)