I have made a little more progress.
I have changed /etc/default/pure-ftpd-common to read
This is the userID of pureftpd.
I then made a script called /usr/sbin/upload2.sh which has the following code:
echo "$1" > /tmp/pure-was-here$(date +%Y%m%d%H%M%S)
I then did this
chmod +x upload2.sh
and restarted Pureftpd.
I then uploaded a file to the ftp server and went to /tmp and the file was there!! YAY!
So I made a txt file called /usr/sbin/msg1.txt which contains:
Subject: Test from FTP Server
This is a test
then created a script called /usr/sbin/upload1.sh which contains:
ssmtp email@example.com < msg1.txt
and I ran
chmod +x upload1.sh
then restarted PureFTPd.
This however does not work.
If I move to the containing folder
and type ./upload1.sh
The email IS sent.
I feel I am very close now but it is still not working.