Email on demand recording

With FreePBX14 what is the recommended way of emailing the recording of a call that is made using on demand recording?

I have read through https://community.freepbx.org/t/solved-how-to-email-call-recordings-post-call-recording-script/26747/11 but it seems as though there may be a problem associated with on demand recording.

-Paul