You can do this without using code.
1) Double-click on your Submit button (make sure that you have chosen "Submit" instead of "Rules or custom code" from the action drop down)
2) click on "Define Action parameters..."
3) Choose "Enable Submit commands and buttons" from the two radio buttons
4) Click the "Add..." button
5) In the To: field use the concat() function like this: concat( "
[email protected];" , emailField )
6) Edit other sections as necessary
7) Click Next, Finish, Ok, Ok.
Hope this helps!
By the way, in order to get to the "code-behind" pages go to Tools -> Programming -> Microsoft Script Editor
---------------
Matt Faus
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge