Via the Portfolio REST API , retrieves selected Portfolio Reports and then forwards ( as an attachment ) to selected email recipients. Script includes logging , customizable email notifications , as well as the capability for predetermined scheduling ( via the Microsoft Windows Task Scheduler ).
Via the Portfolio REST API , retrieves selected Portfolio Reports and then forwards ( as an attachment ) to selected email recipients. Script includes logging , customizable email notifications , as well as the capability for predetermined scheduling ( via the Microsoft Windows Task Scheduler ).
reports_to_email.py
SESSION_PATH
= "D:\\Extensis Portfolio Nightly Reports\\"
SESSION_FOLDER
= "Portfolio-Activity_"
DELETE_PREVIOUS
= "yes"
REPORTS
= ["asset-downloads", "search-terms", "asset-deletions", "asset-uploads"]
PREVIOUS_DAYS
= "30"
INCLUDE_HEADER
= "true"
LOCALE
= "en_US"
SMTP_SERVER
= "mail.example.com"
SMTP_PORT
= 25
EMAIL_FROM
= "server_noreply@example.com"
EMAIL_TO
= ["recipent1@example.com","recipient2@example.com"]
EMAIL_SUBJECT
= [ Extensis Portfolio ] : Activity Reports for
EMAIL_BODY
= "See the attached Portfolio Activity Reports in TSV ( Tab Separated Value ) format.."