add login email sending
This commit is contained in:
@@ -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 ( [
|
||||
|
||||
Reference in New Issue
Block a user