Using forms API - sending submitted data as an XML attachment to an email address
Just implement the hook_form_alter or hook_form_FORM_ID_alter and add your custom submit handler.

See this article for an intro into hooking into forms:
http://websmiths.co/blog/very-introduction-drupals-hookformalter