Hello,
I’m trying to put an encode Image base64 into an oft template mail created with aspose email.
Here my code :
public void generateOFT()
{
String htmlBody = "";
String savePath = "C:\\test.oft";
MailMessage message = new MailMessage();
message.setSubject("Object");
message.setFrom(new MailAddress( "test@test.it", "test@test.it", false));
message.setHtmlBody(htmlBody);
MsgSaveOptions options = SaveOptions.getDefaultMsgUnicode();
options.setSaveAsTemplate(true);
message.save(savePath, options);
}
you can find the txt file attached method.zip (29.5 KB) with the htmlBody variable initialized. It’s to long to past here.
When I open the oft file I have this view :
image.png (3.2 KB)
So as you can see the embed image is not charged.
Could you please help me.
Best Regards,
Riccardo