We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Converting HTML to EML, MSG and OFT not functional

The converting functionality is not working. When the output format is different than EML the API returns error. When I select EML than plain HTML is returned. Not even valid EML file format.

Welcome to our community! Thank you for contacting support. It will take me a while to check it. I will answer you as soon as possible.

Thank you for your patience. There are some issues related to API description. We will fix them later. Could you share the input file and parameters you used, please?

Sure, enl.zip (3.3 KB)
The HTML is responsive email template.

Output format: EML, MSG or (best) OFT

Thank you for the file example. Also, please share the error description and specify the method you used.

Your request URL should be like this:

Format conversion using curl:
curl -X PUT "https://api.aspose.cloud/v4.0/email/convert?fromFormat=Html&toFormat=Oft" -H "accept: multipart/form-data" -H "authorization: Bearer <auth token here>" -H "Content-Type: multipart/form-data" -d @enl.html --output enl.oft

Documents: How to Convert Email From One Format to Another
API Reference: EmailConvert