Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmailHelper::emailType do not work on WIN #5

Open
zschwinges opened this issue Jul 1, 2016 · 1 comment
Open

EmailHelper::emailType do not work on WIN #5

zschwinges opened this issue Jul 1, 2016 · 1 comment
Labels

Comments

@zschwinges
Copy link

zschwinges commented Jul 1, 2016

The following line in the beforeRenderFile function

preg_match('/Email\/(text|html)\//', $viewFile, $match);

do not work on WIN.

Use the following code or something else instead:

if (strpos($viewFile,'Email' . DS . 'text') !== -1){
            $this->_emailType = 'text';
} else if (strpos($viewFile,'Email' . DS . 'html') !== -1){
            $this->_emailType = 'html';
 }

Sorry for my bad english...

@jadb jadb added the bug label Jul 7, 2016
@jadb
Copy link
Member

jadb commented Jul 7, 2016

@zschwinges have you tried:

preg_match('/Email\' . DS . '(text|html)\' . DS . '/', $viewFile, $match);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants