public function sendPartnerAcceptance(string $partnerEmail)
    {
        $mailTemplate = $this->createMailTemplate('partner-request-accept');

        if (!empty($mailTemplate)) {
            $subject = $mailTemplate->getSubject();
            $bodyParams = ['bodyContent' => $mailTemplate->getBody()];

            $sendFrom = [\Yii::$app->get('shopMailer')->transport->getUsername() => \Yii::$app->name ?? parse_url(Url::base(true), PHP_URL_HOST)];

            $this->sendMessage($sendFrom, $partnerEmail, $subject, $bodyParams);
        }

    }
public function sendPartnerAcceptance(string $partnerEmail)
    {
        $mailTemplate = $this->createMailTemplate('partner-request-accept');

        if (!empty($mailTemplate)) {
            $subject = $mailTemplate->getSubject();
            $bodyParams = ['bodyContent' => $mailTemplate->getBody()];

            $sendFrom = [\Yii::$app->get('shopMailer')->transport->getUsername() => \Yii::$app->name ?? parse_url(Url::base(true), PHP_URL_HOST)];

            $this->sendMessage($sendFrom, $partnerEmail, $subject, $bodyParams);
        }

    }
public function sendPartnerAcceptance ( string $ partnerEmail ) { $ mailTemplate = $ this -> createMailTemplate ( 'partner-request-accept' ) ; if ( ! empty ( $ mailTemplate ) ) { $ subject = $ mailTemplate -> getSubject ( ) ; $ bodyParams = [ 'bodyContent' => $ mailTemplate -> getBody ( ) ] ; $ sendFrom = [ \ Yii :: $ app -> get ( 'shopMailer' ) -> transport -> getUsername ( ) => \ Yii :: $ app -> name ?? parse_url ( Url :: base ( true ) , PHP_URL_HOST ) ] ; $ this -> sendMessage ( $ sendFrom , $ partnerEmail , $ subject , $ bodyParams ) ; } }
Sends mail to partner if his request was approved
@param string $partnerEmail
Sends mail to partner if his request was approved