public function emailRegistration(array $data)
    {
        if ($this->config->get('user_registration_email_customer', true)) {
            $this->mail->set('user_registered_customer', array($data));
        }

        if ($this->config->get('user_registration_email_admin', true)) {
            $this->mail->set('user_registered_admin', array($data));
        }
    }
public function emailRegistration(array $data)
    {
        if ($this->config->get('user_registration_email_customer', true)) {
            $this->mail->set('user_registered_customer', array($data));
        }

        if ($this->config->get('user_registration_email_admin', true)) {
            $this->mail->set('user_registered_admin', array($data));
        }
    }
public function emailRegistration ( array $ data ) { if ( $ this -> config -> get ( 'user_registration_email_customer' , true ) ) { $ this -> mail -> set ( 'user_registered_customer' , array ( $ data ) ) ; } if ( $ this -> config -> get ( 'user_registration_email_admin' , true ) ) { $ this -> mail -> set ( 'user_registered_admin' , array ( $ data ) ) ; } }
Sends e-mails on registration event
@param array $data
Sends e - mails on registration event