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

$params variable on createMessageFromView method is not begin send to view #4

Closed
dsouksavatd opened this issue Oct 20, 2015 · 1 comment
Labels

Comments

@dsouksavatd
Copy link

$params = array(
'subject' => 'Password Recovery',
'fullname' => 'Fullname'
);

$this->mailer->createMessageFromView('password_recovery', $params)->to($user[0]['email'], $userInfo->firstname.' '.$userInfo->lastname)->subject('Password Recovery')->send();

so I have temporay fix this issue by add "$view->setVar('params',$params);" before the line number 320 in file name Manager.php

@KorsaR-ZN
Copy link
Contributor

@itpedia-la You have to use so if you need subarray

$params = array(
   'params' => array(
      'subject' => 'Password Recovery',
      'fullname' => 'Fullname'
   )
);

...
...createMessageFromView('password_recovery', $params);
...

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