public static function sendNewMessage($email, $templateId, $templateParams = [])
    {
        $email = explode(',', $email);
        foreach ((array) $email as $singleEmail) {
            $message = new Message;
            $message->attributes = [
                'email' => trim($singleEmail),
                'template_id' => $templateId,
                'packed_json_template_params' => Json::encode($templateParams),
                'status' => Message::STATUS_NEW,
            ];
            if ($message->save()) {
                static::runTask(
                    [
                        realpath(Yii::getAlias('@app') . '/yii'),
                        'emails/send',
                        $message->id,
                    ],
                    Module::DEFERRED_TASK_GROUP_MESSAGE_SEND
                );
            }
        }
    }