updated submit script to send notification email