Adds a couple of email error checks that will wait 5 seconds and retry. Fixes some issues that randomly occur such as host not found error etc.