mailer into before_filters

Signed-off-by: Csanad <erdos@ecs-solutions.hu>