Adding email handler.