Fixed email notification bug in 2.6.

Signed-off-by: Joseph Rézeau <moodle@rezeau.org>