I would like to generate on-the-fly a file in html format and send it to zimbra and have it viewable as html in zimbra webmail client.

How must i format the file to reach that goal ?
Thanks