changePass($pass); $to = $user->email; $from = NO_REPLY_EMAIL; $message = 'Your new password is: '.$pass; $subject = "Password Change"; $headers = "From:" . $from; $headers .= "\nContent-type: text/html\r\n"; mail($to,$subject,$message,$headers); } ?>