common/repositories/ContactUsRepository.php
/**
    * Send Reply Email,use admin-dashboard email template
    * @return boolean
    */
Send Reply Email,use admin-dashboard email template
@return boolean
Send Reply Email use admin - dashboard email template @return boolean
public function SendReplyEmail($email_data,$message){
        $data['id'] = $email_data['id'];
        $data['receiver_id'] = $email_data['receiver_id'];
        $data['sender_id'] = $email_data['sender_id'];
        $data['email'] = $email_data['email'];
        $data['subject'] = $email_data['subject'];
        $data['message'] = $message;
        try {
            $subject = $email_data['subject'];
           \Yii::$app->mailer->compose('admin-dashboard-html',[
                'content' => $data,
            ])
           ->setFrom(\Yii::$app->config->get('App.ContactEmail'))
           ->setTo($data['email'])
           ->setSubject($subject)
           ->send();
           return $this->createNewReplySupportMessage($data);
        } catch (RuntimeException $e) {
            return $e->getMessage();
        }
    }
public function SendReplyEmail ( $ email_data , $ message ) { $ data [ 'id' ] = $ email_data [ 'id' ] ; $ data [ 'receiver_id' ] = $ email_data [ 'receiver_id' ] ; $ data [ 'sender_id' ] = $ email_data [ 'sender_id' ] ; $ data [ 'email' ] = $ email_data [ 'email' ] ; $ data [ 'subject' ] = $ email_data [ 'subject' ] ; $ data [ 'message' ] = $ message ; try { $ subject = $ email_data [ 'subject' ] ; \ Yii :: $ app -> mailer -> compose ( 'admin-dashboard-html' , [ 'content' => $ data , ] ) -> setFrom ( \ Yii :: $ app -> config -> get ( 'App.ContactEmail' ) ) -> setTo ( $ data [ 'email' ] ) -> setSubject ( $ subject ) -> send ( ) ; return $ this -> createNewReplySupportMessage ( $ data ) ; } catch ( RuntimeException $ e ) { return $ e -> getMessage ( ) ; } }
Send Reply Email,use admin-dashboard email template
 @return boolean
Send Reply Email use admin - dashboard email template @return boolean