Deprecation warning in MailMessage.load

Hi, I'm seeing a deprecation warning for the MailMessage.load method. The docs does not say anything. Is there a way to remove it?

method load in object MailMessage is deprecated: see corresponding Javadoc for more information.

Wong,

The deprecation warning appears for the reason that we the method MailMessage.load(filename,MessageFormat) has been marked as obsolete. Please use the new overloaded method MailMessage.load(fileName, MailMessageLoadOptions) instead.

Note: Please note that the latest version of Aspose.Email for Java 3.7.0 has the MailMessage.load functionality broken. If you want to use MailMessage, you will have to use the previous version of Aspose.Email for Java 3.6.0 until we fix this issue.

Sample Code:

MailMessageLoadOptions options = new MailMessageLoadOptions();
options.setMessageFormat(MessageFormat.getEml());
options.setFileCompatibilityMode(FileCompatibilityMode.SkipValidityChecking);
MailMessage eml = MailMessage.load("testMsg.eml", options);

Thanks for the explanation. How do I get a copy of Aspose.email v3.6? I can only download 3.7 from the site.

Oh I’ve found it.