portal.mkgtu.ru/common/commands/command/SendEmailCommand.php

58 lines
543 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
namespace common\commands\command;
use trntv\tactician\base\BaseCommand;
class SendEmailCommand extends BaseCommand
{
public $from;
public $to;
public $subject;
public $view;
public $params;
public $body;
public $html = true;
public function init()
{
parent::init();
$this->from = $this->from ?: \Yii::$app->params['robotEmail'];
}
public function isHtml()
{
return (bool) $this->html;
}
}