add brush test

Also handle error when smtp is not configured.