If mail_on_success=true and force_files=false an e-mail is sent even if no files have been transferred successfully.
If mail_on_success=true an e-mail should be sent only if at least one file has been transferred successfully.