Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. if($this->User->saveField('reset_password_token',$fu['User']['reset_password_token'])){
  2. $Email = new CakeEmail();
  3. $Email->to("makamo66@hotmail.com");
  4. $Email->subject("Password Reset Request - DO NOT REPLY");
  5. $Email->replyTo("makamo66@hotmail.com");
  6. $Email->from('makamo66@hotmail.com');
  7. $Email->sender('makamo66@hotmail.com', 'Do Not Reply');
  8. $Email->template("resetpw");
  9. $Email->emailFormat("html");
  10. $this->Session->write('ms', $ms);
  11. $Email->send('Do not reply');
  12. $this->Session->setFlash(__('Check your email to reset your password.', true));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement