in reply to Multipart/Alternative
I'm not gonna copy the example from the module into here. The link above will take you directly to the code.
HTH, Jenda