frontend/components/MailService/MailService.php
/**
     * Send Remainder Email
     * @param email
     * @return boolean
     */
Send Remainder Email
@param email
@return boolean
Send Remainder Email @param email @return boolean
public function SendReminderEmail($user){
        try {
            $subject = 'Plan bytes Limit Reminder';
            Yii::$app->mailer->compose('reminder-html',[
                    'content' => $user->product,
                ])
            ->setFrom(\Yii::$app->params['supportEmail'])
            ->setTo($user->email)
            ->setSubject($subject)
            ->send();
            return true;
        } catch (Exception $e) {
            return false;
        }
    }
public function SendReminderEmail ( $ user ) { try { $ subject = 'Plan bytes Limit Reminder' ; Yii :: $ app -> mailer -> compose ( 'reminder-html' , [ 'content' => $ user -> product , ] ) -> setFrom ( \ Yii :: $ app -> params [ 'supportEmail' ] ) -> setTo ( $ user -> email ) -> setSubject ( $ subject ) -> send ( ) ; return true ; } catch ( Exception $ e ) { return false ; } }
Send Remainder Email
 @param email
 @return boolean
Send Remainder Email @param email @return boolean