templateModel = array_merge($this->templateModel, [ "product" => Yii::$app->params['product_name'], "product_name" => Yii::$app->params['product_name'], //"support_url" => Yii::$app->params['support_url'], "product_url" => Yii::$app->urlManager->createAbsoluteUrl(['site/index']), "company_name" => Yii::$app->params['company_name'], //"company_address" => Yii::$app->params['company_address'], ]); Yii::$app->postmark->client->sendEmailWithTemplate( Yii::$app->params['supportEmail'], $this->email, $this->templateAlias, $this->templateModel, messageStream: Yii::$app->params['postmark.messageStream'] ); } /** * @inheritDoc */ public function getTtr() { return self::TTR; } /** * @inheritDoc */ public function canRetry($attempt, $error) { return ($attempt < self::MAX_ATTEMPTS); } }