preparation of mailer half-done
back-end for discount notifications refactored