assign('link', $link); $msg = $tmpl->fetchPage(); $l = new OC_L10N('core'); mail($email, $l->t('Owncloud password reset'), $msg); } OC_Template::printGuestPage('lostpassword', 'lostpassword', array('error' => false, 'requested' => true)); } else { OC_Template::printGuestPage('lostpassword', 'lostpassword', array('error' => true, 'requested' => false)); } } else { OC_Template::printGuestPage('lostpassword', 'lostpassword', array('error' => false, 'requested' => false)); }