This script will send you an mail with an attachment of the disk report showing details of all the folders , subfolders and the files in the "C drive"
Edit parameters:
from_mail = "abc@gmail.com" # Provide an email from where it has to send mail
password = "********" # Provide password for the given mail
to_mail = "xyz@gmail.com" # Provide an email where it has to send mail
This script should be run as system user.
Comments