".SERVER_NAME." ".$text." Greetings, Travian"; $headers = "From: ".ADMIN_EMAIL."\n"; mail($email, $subject, $message, $headers); } function sendPassword($email,$uid,$username,$npw,$cpw) { $subject = "Password forgotten"; $message = "Hello ".$username." You have requested a new password for Travian. ---------------------------- Name: ".$username." Password: ".$npw." ---------------------------- Please click this link to activate your new password. The old password then becomes invalid: http://${_SERVER['HTTP_HOST']}/password.php?cpw=$cpw&npw=$uid If you want to change your new password, you can enter a new one in your profile on tab \"account\". In case you did not request a new password you may ignore this email. Travian "; $headers = "From: ".ADMIN_EMAIL."\n"; mail($email, $subject, $message, $headers); } }; $mailer = new Mailer; ?>