How email notification work?