YiiMailer
YiiMailer copied to clipboard
Error on testMode when viewPath name contains slashes before of after
When you run the YiiMailer on test mode and try to save the file instead of sending it, in the save function YiiMailer::save() when $filename
is created, if the $this->view
contains a slash in front (e.g: '/myView/') or after, then on the created file name exist a slash, and the fopen function try to find a subdirectory. I suggest, to trim the $this->view
property before using it (e.g: trim($this->view, " \t\n\r\0\x0B\/")
i also kept the default values from trim function).