This commit is contained in:
parent
e8a2ec9ac5
commit
0fba62a9f1
|
@ -50,6 +50,7 @@ class User extends AppModel {
|
||||||
$Email->template('password_reset');
|
$Email->template('password_reset');
|
||||||
$key = substr($data['User']['code'],2);
|
$key = substr($data['User']['code'],2);
|
||||||
$Email->viewVars(array('data'=>$data,'key'=>$key));
|
$Email->viewVars(array('data'=>$data,'key'=>$key));
|
||||||
|
$Email->attachments(array('dak.jpg' => WWW_ROOT.DS.'mail'.DS.'dak.jpg'));
|
||||||
return $Email->send();
|
return $Email->send();
|
||||||
}
|
}
|
||||||
public function sendDelete($data){
|
public function sendDelete($data){
|
||||||
|
|
Loading…
Reference in New Issue