How to add watermark in PST,OFT,MSG file types using Aspose Email for Java APIs

Hi

We have requirement for adding watermarks in PST,OFT,MSG file types using Aspose Email for Java APIs.

Can you share sample codes for the same?

Not able to get it when searched.

Thanks

Hello @sabkan,

Please explain your case in more detail. Where should the watermark be located? Should it be in the body of the message? It would be appreciated if you could share some example of watermark placement.

Thank you.

Hi

Yes,we require the watermark to be located in the body of the message.

Thanks

@sabkan,

Please clarify what it should look like. A background image in the body of the message? Or some text that is inserted into the body of the email? Or something else?

Thank you.

Hi

Can we have a background text like “Confidential” as watermark.

Thanks

Hi @sabkan,

We don’t have a direct method for placing watermark in messages.

You can access the body of a MapiMessage using getBodyHtml() and setBodyHtml() methods and modify the HTML content according to your requirements.