View Single Post
  #8  
Old 24th November 2009, 07:10
almeister9 almeister9 is offline
Member
 
Join Date: Sep 2008
Posts: 36
Thanks: 6
Thanked 3 Times in 3 Posts
Default Success

Using this script I found at http://www.axllent.org/docs/networki...on_the_console

Code:
#!/bin/bash
CURDATE=`date`
ssmtp -oi recipient@address.com << EOF
From: FTP Server <originator@gmail.com>
To: recipient@address.com
Subject: File uploaded to FTP SERVER on $CURDATE

The file $1 was uploaded to the FTP-SERVER on $CURDATE.

EOF
$1 is the argument passed from pure-uploadscript(8) so the email I got says:

The file home/www.example.com/ST15_01.pdf was uploaded ...

YAY double YAY
and thanks to axllent.org for the script
Reply With Quote