order of email on failure
email config