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();
client.setHost(“[webmail.comcast.com](http://webmail.comcast.com/)”);
client.setUsername(“pucuser”);
client.setPassword(“pucpassword”);
client.setSecurityOptions(SecurityOptions.Auto);
MailMessage eml = client.fetchMessage(23);
ByteArrayOutputStream emlStream = new ByteArrayOutputStream();
eml.save(emlStream,SaveOptions.getDefaultEml());
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