You can do this from the dialplan, set the bind_digit_action or bind_digit_app and set the paramaters for sending mail, then set the record_post_process_exec_app to invoke a script that sends the email, something like:
bind_meta_app 2 a s record_session:name_of_recording.wav
record_post_process_exec_app=lua:emai.lua name_of_recording.wav
you can copy/modify the email.lua script to send the recording, maybe set a variable for deleting/not deleting the recording in the dialplan and delete/not delete the recording from script that is invoked