$mailbody = str_replace(array_keys($rep), array_values($rep), $mailbody);
if (!$mailbody) throw new Exception('empty mail body');
$mailsub = "Wachtwoord-reset voor $sitename";
$mailbody = str_replace(array_keys($rep), array_values($rep), $mailbody);
if (!$mailbody) throw new Exception('empty mail body');
$mailsub = "Wachtwoord-reset voor $sitename";