I am attempting to send a message via the SendMessage endpoint. The message has an attachment. While everything sends fine, the contentId that I set - rather the field is called contendid, which I assume is correct in the doc - is not respected.
The problem is that inline images in the email are referenced via their contentId by all mail providers - Yahoo included. If you do not maintain the content id as I send the message, then inline images will never display.
here is the json I am sending. Again, this all works fine other than the fact that the contentId is not actually
ComposeMessage json
{
"message":{
"subject":"Test w/ Attach",
"from":{
"email":"jared_rodriguez@yahoo.com"
},
"body":{
"type":"multipart",
"subtype":"mixed",
"subparts":[
{
"type":"image",
"filename":"74031_1710057156970_3532760_n.jpg\"",
"disposition":"attachment",
"attachment":"upload://c611b152730d5c7c085a06e8cb8d5a13",
"subtype":"jpeg",
"subparts":[
],
"contendid":"1544b74a-5608-4c41-8821-2021eda04ff7"
},
{
"type":"text",
"data":"<p>test w/ attach</p>",
"charset":"UTF-8",
"subtype":"html",
"subparts":[
],
"contendid":"ebd2ccce-667b-4076-beba-1ec1059ac19f"
}
],
"contendid":"aaaa"
},
"to":[
{
"email":"jared@dogriguez.com"
}
],
"cc":[
],
"bcc":[
]
},
"savecopy":true
}
Yet when I fetch the message, immediately after sending, the contentIds are all empty strings.