I would start by attempting to recopy the forgot_password.php file from a fresh downloaded copy of moodle (same version that you are running.) It could just be a corrupted file.
I would also check your outgoing email settings as this file appears to be detailing the connection with the email server.