Automating pruffme and Mailjet takes no code: a ready-made scenario does the routine for you.
Starts when: Daily Schedule (2 AM)
Then: List Files - Source FTP
Check: Filter Files
Then: Download File
Then: Upload to Destination
Check: Upload Success?
Then: Delete Source File
Then: Log Success
Then: Send Email Success Alert
You can launch this pruffme + Mailjet integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.