implemented emailing of json form