frontend/components/MailService/MailService.php
/**
     * Send Payment Failure Transaction
     * @param email
     * @return boolean
     */
Send Payment Failure Transaction
@param email
@return boolean
Send Payment Failure Transaction @param email @return boolean
public function sendFailureEmail($order){
        try {
            $subject = 'Payment Failure Trasnaction';
            Yii::$app->mailer->compose('reminder-failure-html',[
                'content' => $order,
                ])
            ->setFrom(\Yii::$app->params['supportEmail'])
            ->setTo($order['email'])
            ->setSubject($subject)
            ->send();
            return true;
        } catch (Exception $e) {
            return false;
        }
    }
public function sendFailureEmail ( $ order ) { try { $ subject = 'Payment Failure Trasnaction' ; Yii :: $ app -> mailer -> compose ( 'reminder-failure-html' , [ 'content' => $ order , ] ) -> setFrom ( \ Yii :: $ app -> params [ 'supportEmail' ] ) -> setTo ( $ order [ 'email' ] ) -> setSubject ( $ subject ) -> send ( ) ; return true ; } catch ( Exception $ e ) { return false ; } }
Send Payment Failure Transaction
 @param email
 @return boolean
Send Payment Failure Transaction @param email @return boolean