Hello,
Here is the link that shows how to add event handlers:
https://msdn.microsoft.com/en-us/library/office/aa947848.aspx
Also, there is another approach that you can use which requires qRules (link here) . There is a SendEmail command that you can use with InfoPath filler forms. The forms have to be Full Trust. We will soon be releasing the latest version of qRules which will have this command. Please let us know if this is something you would like to try.
Kind Regards,
Reema
Daga
Support and Quality Assurance
Engineer
Qdabra® Software / 877.544.2389 main / 425 999 4597 direct
Business Process Automation
for Everyone – Streamline data gathering to
turn process into knowledge.™