improve mailer logging. add check so mailer script can be sent multiple times a day without re-mailing users