&eFormOnBeforeMailSent (optional)There is a good example in the documentation for eForm in your assets/snippets/eform/docs folder.
Expects a function name. This function will be called after the form has been validated and before the report and thankyou templates have been parsed and any emails have been sent out.