govtnz/logtofilemailer

This package is abandoned and no longer maintained. No replacement package was suggested.

Log emails to file on disk instead of sending them.

dev-master 2014-02-03 01:54 UTC

This package is not auto-updated.

Last update: 2016-06-19 13:52:43 UTC


README

Logs emails to file on disk instead of sending them.

Requires SilverStripe >= 3.0, govtnz/filesystemtools >= 1.0.

Add the following requirement to your composer.json file:

"require": {
    "govtnz/logtofilemailer": "dev-master"
}

Add the following repositories to your composer.json file:

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/GOVTNZ/logtofilemailer"
    },
    {
        "type": "vcs",
        "url": "https://github.com/GOVTNZ/filesystemtools"
    }
]

Run composer update in your project directory

Configuration

Set config::$log_directory in config.yml or equivalent php code as follows:

  • If config::$log_directory not set then logs to OS temp directory.
  • If set and starts with '/' then that absolute path is used.
  • If set and doesn't start with '/' then path is used relative to the script execution path.

  • If path doesn't exist then an attempt will be made to create it via FileSystemTools::make_path, failure will throw an Exception.