src/Mailer/UserMailer.php
protected function _prepareEmail(User $user, $subject)
    {
        $this->layout('Wasabi/Core.responsive');
        $this->_email->transport('default');
        $this->_email->emailFormat('both');
        $this->_email->from(Wasabi::getSenderEmail(), Wasabi::getSenderName());
        $this->_email->to($user->email, $user->username);
        $this->_email->subject($subject);
        $this->_email->helpers([
            'Email' => [
                'className' => 'Wasabi/Core.Email'
            ]
        ]);
    }
protected function _prepareEmail(User $user, $subject)
    {
        $this->layout('Wasabi/Core.responsive');
        $this->_email->transport('default');
        $this->_email->emailFormat('both');
        $this->_email->from(Wasabi::getSenderEmail(), Wasabi::getSenderName());
        $this->_email->to($user->email, $user->username);
        $this->_email->subject($subject);
        $this->_email->helpers([
            'Email' => [
                'className' => 'Wasabi/Core.Email'
            ]
        ]);
    }
protected function _prepareEmail ( User $ user , $ subject ) { $ this -> layout ( 'Wasabi/Core.responsive' ) ; $ this -> _email -> transport ( 'default' ) ; $ this -> _email -> emailFormat ( 'both' ) ; $ this -> _email -> from ( Wasabi :: getSenderEmail ( ) , Wasabi :: getSenderName ( ) ) ; $ this -> _email -> to ( $ user -> email , $ user -> username ) ; $ this -> _email -> subject ( $ subject ) ; $ this -> _email -> helpers ( [ 'Email' => [ 'className' => 'Wasabi/Core.Email' ] ] ) ; }
Prepare the UserMailer Email instance.

@param User $user The user to send the email to.
@param string $subject The subject of the email.
@return void
Prepare the UserMailer Email instance .