Attempt a failed attempts count to mail stuff
Added column
Added a 'don't send if sent' clause
Merged in tweaks for mail system
This shouldn't send already sent emails, and also keeps count of send attempts