Only send an email every 30 minutes.

Moving the message variable.
Merge branch 'feature/throw-exception-on-corrupt-data' into develop