In my Java code, I have MailMessage object. Although it consists of “reply-To” header, I can not see this header in converted Pdf file. I see only from, sent, subject, to, message and signature.
How can I add reply-to email address to the pdf file?
MhtMessageFormatter class doesnt have setReplytoFormat like other formats.
I have also controlled with Aspose Email Version 23.1
I couldn’t see either.
MhtSaveOptions so = new MhtSaveOptions();
so.getFormatTemplates().set_Item(MhtTemplateName.FROM, so.getFormatTemplates().get_Item(MhtTemplateName.FROM).replace(“From”, “Gonderici”));
I have tried but it didn’t work. I use Aspose Mail Version 23.1.
I can only see the message of email. The other parts are not converted. Even from, subject, to etc.
My old code is from Version 6.0. it works partly without reply-to header.
MailMessage document;
MhtMessageFormatter msgFormatter = new MhtMessageFormatter();
msgFormatter.setFromFormat(msgFormatter.getFromFormat().replace(“From”, “Kimden”));
msgFormatter.setSentFormat(msgFormatter.getSentFormat().replace(“Sent:”, “Tarih:”));
msgFormatter.setToFormat(msgFormatter.getToFormat().replace(“To”, “Kime”));
msgFormatter.format(this.document);