Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Classes \Postman\Transports\Debug

joebeeson edited this page Apr 4, 2011 · 3 revisions

The Debug transport takes an Email object and saves it to a file for review; a sort of print_r for the object. It's recommended that you use this to help debug or develop your application.

Configuration

  • folder (Optional, string) Location to save the file. Defaults to your temporary folder.

Notes

It's often useful to have all emails to be "sent" via this transport when you application is in development:

public function beforeFilter() {
    if (Configure::read('debug') > 0) {
        $this->Postman->setTransport('Debug');
    }
}

When sending a lot of emails your temporary folder can become unwieldy rather quickly. Be sure to clear out the older files periodically.

Related