Es muss auf globale Variablen umgestellt werden (oder man müsste in member.php einfach mal die üblichen Variablen globalisieren).
So funktioniert das Mail ohne Lücken:
Code: Alles auswählen
if (!defined('CPO')) exit;
ini_set('sendmail_from', $GLOBALS['cpoSystem']['system_email']);
mail(
$email,
__('Password resetted'),
sprintf(__("------------------------------------------------------------------------\nThis e-mail was automatically generated. If you have questions please\ncontact your administrator <%s>.\n------------------------------------------------------------------------\n\nHello %s,\n\nyour password was resetted:\n\nProject: %s\nNew password: %s\n"),
$GLOBALS['cpoSystem']['admin_email'], // admin
$name, // user
$GLOBALS['cpoSystem']['project'], // project
$new_passwd
),
'From: '.$GLOBALS['cpoSystem']['system_email']
);
ini_restore('sendmail_from');
Code: Alles auswählen
global $activeModules, $cpoSystem;