finished the email portion of inqury servlet