Been trying to figure out how to send an html email dynamically created (by the app) images embedded in it.
Have tried a few things … like:
![embedded image](data:image/png;base64,%20%5D%5D%20..%20base64EncodingOfImage%20..%20%5B%5B)
This comes up ok on the iphone to send but the clients i have tried do not render the images inline like this. It is also very slow to approach it this way.
The other way that i want to try out is to use a reference to an attachment but i’m not seeing how the API will support this.
As i understand it one creates their image and attaches it then in the HTML use a reference to the Content ID of the attachment.
e.g., ![my-photo](cid:myImageContentId)
The problem is that i do not see a way to set the CID of an attachment to an email:
attachment =
{
{ baseDir=system.DocumentDirectory, filename=“MyGeneratedImage.jpg”, type=“image” },
},
Is there any way to set the Content-ID: header field of the attachment?
Thanks for any insight
[import]uid: 118012 topic_id: 33303 reply_id: 333303[/import]