Thanks for looking at this for me.
The output of "which mail" is nothing.
The output of "which ssmtp" is:
When I started again from scratch, I built it with just the server and Pureftp, then installed ssmtp. Thats why "which mail" is empty.
Following your first advice
Have you tried to use the full path for the mail command?
would that mean that the script should read:
echo "$1 uploaded" | /usr/sbin/ssmtp firstname.lastname@example.org
Subject: "New Upload : $1"
Body text with hopefully some of the other arguments passed from the pure-uploadscript
And also, does the script need to have a .sh file extension?
Thanks again for any help you can give me with this.