add login email sending

This commit is contained in:
2016-01-08 22:49:18 +01:00
parent 0084526094
commit b83d13ad2f
10 changed files with 292 additions and 104 deletions

View File

@@ -80,7 +80,7 @@ class AccountStateController extends Controller {
// return $this->redirect(['view', 'id' => $model->id_account_state]);
$mail = new AccountStateMail(['model' => $model]);
$mail = new AccountStateMail(['model' => $model,'controller' => $this]);
$mail->sednMail();
@@ -114,7 +114,7 @@ class AccountStateController extends Controller {
if ($model->load ( Yii::$app->request->post () ) && $model->save ()) {
$mail = new AccountStateMail(['model' => $model]);
$mail = new AccountStateMail(['model' => $model,'controller' => $this]);
$mail->sednMail();
return $this->redirect ( [