How to Add Sender's Username in the Email Template When Sending a Document in Mayan EDMS

Hello all!

I’m trying to add the sender’s username or any other details related to the sender in the email template when a document is sent. For example, if I log in as John and send a document via email to David, I want the email to say something like, “This document was sent by John.”

I would like the username to be dynamic, meaning the email template should automatically populate with the current logged-in user’s name.

Any help or guidance on how to achieve this would be greatly appreciated!
Thank you!