This is a robot that checks for files in FTP folder and sends an email with a download link when finds one.
OS X & Linux:
git clone https://github.com/nuxly/ftp2mail.git
cd ftp2mail
make install
After modifying your own configuration file from the sample-config.json
file, run the following command:
php index.php --config your-config.json
To display program help, run the following command :
php index.php -h
You can create a cron job with the following command :
crontab -l | { cat; echo "* * * * * php /your-ftp2mail-directory/index.php --config config.json"; } | crontab -
Lionel Vinceslas – @Nuxly – [email protected]
Distributed under the CeCILL license. See LICENSE
for more information.
- Fork it (https://github.com/yourname/ftp2mail/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request