I am creating a draft message in GMail via API and the raw message is (before base64urlencoding):
X-Sender: sender@sender.com.au
X-Receiver: receiver@receiver.com.au
MIME-Version: 1.0
From: sender@sender.com.au
To: receiver@receiver.com.au
Subject: This email is from API
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
<html>
<style>
p{margin-top:0px; margin-bottom:0px;}
</style>
<body class="setupTab" style=" background-color:#CCCCCC; bEditID:b1st1; bLabel:body;">
<center >
<table cellpadding="0" width="500" cellspacing="0" id="topTable" height="450" >
<tr valign="top" >
<td style=" background-color:#FFFFFF; bEditID:r1st1; bLabel:header; vertical-align:top; height:100; text-align:left;">
<img border="0" bEditID="r1sp1" bLabel="headerImage" id="r1sp1" src="https://cs31.salesforce.com/servlet/servlet.ImageServer?id=<someid>&oid=<someid>" ></img>
....
</body>
</html>
User is then redirected to https://mail.google.com/mail/u/0/#drafts?compose=<id>
to review the email and then send.
However the images, part of the html, are not rendered/displayed. There are some other minor issues with the html rendering too but image is critical to have.
Any thoughts?