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

Free Support Forum - aspose.com

The method load(String- MessageFormat) from the type MailMessage is deprecated

im using the latest version 4.7

this is my code:

MailMessageLoadOptions options = new MailMessageLoadOptions();

options.setMessageFormat(MessageFormat.getMsg());

options.setFileCompatibilityMode(FileCompatibilityMode.SkipValidityChecking);

MailMessage message = MailMessage.load(sFile.getPath(), options);


and this is the warning i have: The method load(String, MessageFormat) from the type MailMessage is deprecated

NB: I had the same warning shown in the link below so i tried to fix it with the code above


Hi Roula,

The latest version of Aspose.Email for Java 4.7.0 doesn’t throw any such warning and the sample code you shared is the right one to be used. Please let us know if we can be of any additional help to you in this regard.