Sender Email Address : Issue while sending mail from outlook

Dear Team

We are using Aspose 4.8.0. In code we are getting the current user email address and setting it to

MailMessage mailMsg = MailMessage.load("C:/dev/Projects/EDM/New Template 08022017/NL to Connected Banker - Een ING kredietcontract klaar om te ondertekenen - Naam van de klant.msg" );
MailAddress mailAddAdmin = new MailAddress("neeraj.singh.bhainsora@ing.be");
mailMsg.setFrom(mailAddAdmin);

The From is setting correctly but while sending it from Outlook its throwing error.
This message could not be sent.
Try sending the message again later, or contact your network administrator. You
do not have the permission to send the message on behalf of the specified user.

Error is [0x80070005-0x0004dc-0x000524].

Hi Neeraj,


We have noticed that you are using quite an older version of the API which we don’t provide support for now. Please try it with the latest version of the API i.e. Aspose.Email for Java 17.1.0 and let us know your feedback. If the problem still persists, please share your sample MSG file with us along with any other information that you have noticed other than the shared above. We’ll look into it for assisting you further.