Sure, In the IVR, make option one a custom dialplan linked to the IVR, using the custom destination application. The custom destination (dialplan) should trigger the email, then complete the next phase of the call treatment for the caller. Another option would be to trigger the email as part of the hangup.
Hints/Reading Material:
https://wiki.freepbx.org/display/FPG/Custom+Destinations+User+Guide
https://wiki.freepbx.org/display/FPG/System+Admin+-+Email+Setup
This has some options regarding email that could be applied to your use case: