I'm still not sure the `now.getHours() !== end.getHours()` logic is correct. If the polling frequency is 24hrs, daily mail never gets sent out.