mir einen Entwurf Nachricht in GMail über die API und die rohe Botschaft ist die Schaffung (vor base64urlencoding):Bilder nicht in Entwurf Rendering erstellt mit Gmail API
X-Sender: [email protected]
X-Receiver: [email protected]
MIME-Version: 1.0
From: [email protected]
To: [email protected]
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>
Benutzer dann auf https://mail.google.com/mail/u/0/#drafts?compose=<id>
umgeleitet werden, um die E-Mail überprüfen und dann senden.
jedoch die Bilder, ein Teil der html, werden nicht gerendert/angezeigt. Es gibt noch einige kleinere Probleme mit dem HTML-Rendering, aber Bild ist kritisch zu haben.
Irgendwelche Gedanken?
[Etwas verwandte] (http://stackoverflow.com/questions/4312687/how-to-embed-images-in-email) – Tholle