EmailSender now only sends the emails on the date passed as parameter, not on all dates before that