Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/croogo/croogo/Users/src/Mailer/Preview/UserMailPreview.php
<?php

namespace Croogo\Users\Mailer\Preview;

use
DebugKit\Mailer\MailPreview;

class
UserMailPreview extends MailPreview
{

    public function
resetPassword()
    {
       
$this->loadModel('Croogo/Users.Users');
       
$user = $this->Users->get(1);
        if (empty(
$user->email)) {
           
$user->email = 'test@example.org';
           
$user->clean();
        }

        return
$this->getMailer('Croogo/Users.User')
            ->
resetPassword($user);
    }

    public function
registrationActivation()
    {
       
$this->loadModel('Croogo/Users.Users');
       
$user = $this->Users->get(1);
        if (empty(
$user->email)) {
           
$user->email = 'test@example.org';
           
$user->clean();
        }

        return
$this->getMailer('Croogo/Users.User')
            ->
registrationActivation($user);
    }
}