public function onUserActivationPost(UserActivationEvent $e) 
    {
        $password = $e->getParam('password');
        $email = $e->getParam('to');
        $siteUrl = $e->getParam('siteurl');
        $loginUri = $this->getModuleOptions()->getLoginUri();

        // something got really wrong if we get here...
        if(null === $email || null === $password) { 
        	return;
        }
        
        $transport = $this->getServiceLocator()->get('mailer.mail.transport.smtp');
        $message = $this->getServiceLocator()->get('mailer.mail.message.useractivation');
        $message->configure(array(
            'to' => $email,
            'siteurl' => $siteUrl,
            'loginurl' => $siteUrl . $loginUri, 
            'password' => $password,
        	'cdnurl' => $this->getModuleOptions()->getCdnUrl(),
            'siteName' => $this->getModuleOptions()->getSiteName()
        ));
        $transport->send($message);
    }
public function onUserActivationPost(UserActivationEvent $e) 
    {
        $password = $e->getParam('password');
        $email = $e->getParam('to');
        $siteUrl = $e->getParam('siteurl');
        $loginUri = $this->getModuleOptions()->getLoginUri();

        // something got really wrong if we get here...
        if(null === $email || null === $password) { 
        	return;
        }
        
        $transport = $this->getServiceLocator()->get('mailer.mail.transport.smtp');
        $message = $this->getServiceLocator()->get('mailer.mail.message.useractivation');
        $message->configure(array(
            'to' => $email,
            'siteurl' => $siteUrl,
            'loginurl' => $siteUrl . $loginUri, 
            'password' => $password,
        	'cdnurl' => $this->getModuleOptions()->getCdnUrl(),
            'siteName' => $this->getModuleOptions()->getSiteName()
        ));
        $transport->send($message);
    }
public function onUserActivationPost ( UserActivationEvent $ e ) { $ password = $ e -> getParam ( 'password' ) ; $ email = $ e -> getParam ( 'to' ) ; $ siteUrl = $ e -> getParam ( 'siteurl' ) ; $ loginUri = $ this -> getModuleOptions ( ) -> getLoginUri ( ) ; // something got really wrong if we get here... if ( null === $ email || null === $ password ) { return ; } $ transport = $ this -> getServiceLocator ( ) -> get ( 'mailer.mail.transport.smtp' ) ; $ message = $ this -> getServiceLocator ( ) -> get ( 'mailer.mail.message.useractivation' ) ; $ message -> configure ( array ( 'to' => $ email , 'siteurl' => $ siteUrl , 'loginurl' => $ siteUrl . $ loginUri , 'password' => $ password , 'cdnurl' => $ this -> getModuleOptions ( ) -> getCdnUrl ( ) , 'siteName' => $ this -> getModuleOptions ( ) -> getSiteName ( ) ) ) ; $ transport -> send ( $ message ) ; }
User Activation mail

@param EventManagerInterface $events
@return PrerenderListener
User Activation mail