Email event handler, fixing a typo-origin bug.