Use CSS Form Builder. In CSS Form builder, you can add the behavior to send an Email by going to Webassist -> Create new Email message.
In The Universla Email wizard, Select the option to create a file for the email mesage and use one of the available templates, this will automitcluy add code to loop through the form fields on the page.