in reply to gmail -- sending out html messages
You'll need to compose a multipart MIME email, most likely. I don't know the specifics of that, but I will warn that many email clients will refuse to render (or will mangle) <form>s in HTML mail.