This script will check current logged user folder for media and save those file name as .log file with the user name.
For example:
current user is "joey"
log file name will be joey.log
Run this script as system user
Edit Email recipients and smtp details
emailto =['xyz@gmail.com','pqr@gmail.com']
emailfrom = "yyyyyy@gmail.com"
password = "12345678"
smtpserver='smtp.gmail.com'
port=587