We are trying to get emails from office 365 account and download them in .msg format.
when we tried the email/as-file endpoint the resultant .msg file is not valid after passing email body received from microsoft graph API.
we wanted to try with [ClientAccount] (https://apireference.aspose.cloud/email/#/ClientAccount) and ClientMessage to login and retrieve the emails.
the login SMTP credentials are not working. we have 2 problems.
- microsoft gives us tennent id and that field is not available in aspose
- microsoft is not giving us refresh token which is required in aspose.
we tried passing tennant id to refresh token and we got the following error:
“message”: “Deserialization error”,
Can you please suggest some resource that enables accessing email account provided by office 365.
Thanks & regards,