proper callback for submitting emails.