setPassword(crypt($password, $salt)); $str = "Save this e-mail for future reference. You will need this ID and password to login to www.gsu.nd.edu.\n\n" . "\tHere's your User ID: " . $theUser->getAFSID() . "\n" . "\tHere's your password: " . $password . "\n\n" . "If you have any questions, feel free to send them to $adminemail.\n\n" . "Your friendly daemon,\n" . "Westley\n" . ".\n" . "\n"; mail($theUser->getEmail(), "LAM/MPI web login information", $str, "From: $adminemail\nX-Mailer: $idstring"); write_log("Mailed new password to " . $theUser->getEmail()); } }