Skip to content
/ ftp2mail Public

This is a robot sends an email with a download link when a new file is dropped on the ftp folder (PHP).

License

Notifications You must be signed in to change notification settings

nuxly/ftp2mail

Repository files navigation

Ftp2Mail

This is a robot that checks for files in FTP folder and sends an email with a download link when finds one.

Installation

OS X & Linux:

git clone https://github.com/nuxly/ftp2mail.git
cd ftp2mail
make install

Usage example

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 -

Meta

Lionel Vinceslas – @Nuxly[email protected]

Distributed under the CeCILL license. See LICENSE for more information.

https://github.com/nuxly/

Contributing

  1. Fork it (https://github.com/yourname/ftp2mail/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

About

This is a robot sends an email with a download link when a new file is dropped on the ftp folder (PHP).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published