Hi,
we have successfully used /email/as-file API in past with good results. However, it seems like API is not working as expected. Despite passing an htmlBody, file from the response does not contain a body.
You can replicate the behaviour with your swagger using this payload:
{
“format”: “Eml”,
“value”: {
“attachments”: [
],
“body”: “Some body”,
“bodyType”: “Html”,
“date”: “0001-01-01T00:00:00”,
“deliveryNotificationOptions”: [
“OnSuccess”,
“Delay”
],
“from”: {
“displayName”: “From Address”,
“address”: “from@aspose.com”,
“participationStatus”: “NeedsAction”
},
“htmlBody”: “Some body”,
“isBodyHtml”: true,
“isDraft”: true,
“isEncrypted”: false,
“isSigned”: false,
“originalIsTnef”: false,
“priority”: “High”,
“sensitivity”: “None”,
“subject”: “Re: Some subject”,
“to”: [
{
“displayName”: “To Address”,
“address”: “to@aspose.com”,
“participationStatus”: “NeedsAction”
}
]
}
}