state logs to console for success/fail of email