Gets a better email to send out, and properly (safely) checks errors