Using RoboCopy command, files can be copied or moved. For triggering mail additional code is added in separate file.
See how to encrypt password:
How to encrypt password in PowerShell
Powershell script to send Email: