Hello,
I am trying to convert a message sent from Outlook in TNEF format. I would like to get a HTML file with inline images in place. Is this possible with Aspose.Email?
Currently I am struggling with two problems:
1. Non-English characters are transcoded to ??????
2. I don’t know how to link <img src="objattph://"> elements with MAPI attachments
I have tried:
1.
MailMessage mail = MailMessage.load("message.eml");
MapiMessage mapi = MapiMessage.fromMailMessage(mail);
System.out.println(mapi.getBodyHtml());
Not working. German letters in the text are replaced by ?????.
2.
MailMessage mail = MailMessage.load("message.eml");
ByteArrayOutputStream stream = new ByteArrayOutputStream();
mail.save(stream, MailMessageSaveType.getMHtmlFormat());
MailMessage message = MailMessage.load(new ByteArrayInputStream(stream.toByteArray()));
System.out.println(message.getHtmlBody());
This works but inline images are missing.
I extracted a RTF file from winmail.dat and it’s codepage is windows-1250. Is there a way to get non-English characters and inline images with Aspose.Email?
I am trying to convert a message sent from Outlook in TNEF format. I would like to get a HTML file with inline images in place. Is this possible with Aspose.Email?
Currently I am struggling with two problems:
1. Non-English characters are transcoded to ??????
2. I don’t know how to link <img src="objattph://"> elements with MAPI attachments
I have tried:
1.
MailMessage mail = MailMessage.load("message.eml");
MapiMessage mapi = MapiMessage.fromMailMessage(mail);
System.out.println(mapi.getBodyHtml());
Not working. German letters in the text are replaced by ?????.
2.
MailMessage mail = MailMessage.load("message.eml");
ByteArrayOutputStream stream = new ByteArrayOutputStream();
mail.save(stream, MailMessageSaveType.getMHtmlFormat());
MailMessage message = MailMessage.load(new ByteArrayInputStream(stream.toByteArray()));
System.out.println(message.getHtmlBody());
This works but inline images are missing.
I extracted a RTF file from winmail.dat and it’s codepage is windows-1250. Is there a way to get non-English characters and inline images with Aspose.Email?