Complete send_pw.php functionality