PHP Export html to Outlook oft

1.6k views Asked by At

We use an in house software to generate html templates for our clients. We spend to much time teaching our clients how to save the templates. We are trying to track down a way to export the html into a .oft template.

It is easy enough to create the files but the encryption or encoding of the file is throwing us through a loop.

Is there a library or code that we can use to convert an html file? We would prefer to work with php but we can work with other languages if needed.

1

There are 1 answers

5
Dmitry Streblechenko On

You can try to use Redemption for that (it can be used from PHP - I am its author) - create an instance of the RDOSesssion object, call RDOSession.CreateMessageFromMsgFile (returns RDOMail object), set the RDOMail.HTMLBody property, save it as an OFT file (RDOMail.SaveAs(..., olTemplate)