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

Free Support Forum - aspose.com

Re: MailMessage conversion / save to EML format: BOM is present: EMAILJAVA-33550

Hi Kashif,

Thanks for the reply. Am using the latest aspose java email api i.e aspose-email-17.2.0-jdk16.jar. The below is the code snippet am executing.

I am trying to get the email from inbox and saving it to a bytestream and converting, displaying it as string.

Pop3Client client = new Pop3Client();





MailMessage eml = client.fetchMessage(23);

ByteArrayOutputStream emlStream = new ByteArrayOutputStream();


System.out.println(“Email message is===>>>”+new String(emlStream.toByteArray(), StandardCharsets.UTF_8));

The above code is generating all the email content with some extra characters appended to them like “2E”.

example output:

This is an evaluation copy of Aspose=2EEmail for =2ENET=2E=20

[http://www=2Easpose=2Ecom/corporate/purchase/end-user-license-agreement=2Ea= ](http://www%3D2easpose%3D2ecom/corporate/purchase/end-user-license-agreement=2Ea=)

spx: View EULA Online

Customer Comment/Letter: Disconnected service in May 2015 due to house fir=

e=2E Customer moved temporarily to an apartment in June, began service at =

the apartment=2E When she moved back to the house, started service again at=

the house=2E Didn’t sign 2-year contract, transferred service=2E Billing i=

ssues=2E Can someone give her a call? 860 917 7195


This issue where (.) is replaced with =2E while printing the EML without initializing the license is re-produced and logged under Id: EMAILJAVA-34245 for further investigation by the product team, You will be automatically notified once any update is received in this regard.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan