@@ 18-26 (lines=9) @@ | ||
15 | * |
|
16 | * @return void |
|
17 | */ |
|
18 | public function register(User $user, $viewVars = []) |
|
19 | { |
|
20 | $this |
|
21 | ->emailFormat('html') |
|
22 | ->from(['[email protected]' => __d('mail', 'Welcome on {0} !', Configure::read('Site.name'))]) |
|
23 | ->to($user->email) |
|
24 | ->subject(__d('mail', 'Welcome on {0} !', Configure::read('Site.name'))) |
|
25 | ->set($viewVars); |
|
26 | } |
|
27 | ||
28 | /** |
|
29 | * Login Email. Used when someone fail to login and his group is a staff group. |
|
@@ 53-61 (lines=9) @@ | ||
50 | * |
|
51 | * @return void |
|
52 | */ |
|
53 | public function forgotPassword(User $user, $viewVars = []) |
|
54 | { |
|
55 | $this |
|
56 | ->emailFormat('html') |
|
57 | ->from(['[email protected]' => __d('mail', 'Forgot your Password - {0}', Configure::read('Site.name'))]) |
|
58 | ->to($user->email) |
|
59 | ->subject(__d('mail', 'Forgot your Password - {0}', Configure::read('Site.name'))) |
|
60 | ->set($viewVars); |
|
61 | } |
|
62 | } |
|
63 |