Recently I worked on a small project whose task was to generate reports and send them via FTP and email on user defined schedule…