guild/common/models/email/RegistrationEmail.php

20 lines
445 B
PHP
Raw Normal View History

2023-10-18 13:12:02 +03:00
<?php
namespace common\models\email;
use common\models\User;
use Yii;
class RegistrationEmail extends Email
{
/**
* @param User $user
*/
public function __construct(User $user)
{
$this->sendTo = $user->email;
2024-02-05 23:58:48 +03:00
$this->subject = 'Регистрация в ' . Yii::$app->name;
2023-10-18 13:12:02 +03:00
$this->mailLayout = ['html' => 'signup-html', 'text' => 'signup-text'];
$this->params = ['user' => $user];
}
}