I\'m trying to send an email from a CakePHP shell just as you would from the Controller.
Most of the code below was adapted from this dated article on the Bakery an
If you're using CakePHP 2.x, try to use CakeEmail instead.
CakeEmail
CakeEmail#viewVars() provides setting variables to template.
CakeEmail#viewVars()
Here is example using CakeEmail from Shell. https://gist.github.com/tsmsogn/cee9cef2e851e7684021