I've configured a server (Ubuntu) with OpenSSH for file transfer via sFTP. The requirement is that after a file transfer, a mail is sent confirming the file was received by the system. How would I do this without having to poll the directory every x time for new/changed files?
Example: sending a email using command prompt
Refer one more answer related to sending an email, Sending mail from the command line, in an automated way