Or, just set sendmail to queue all messages (Odq in the config file) and it will actually deliver them during the queue run. You'll want to run the queue every 15 minutes at least though.