+ config check and example settings
+ improved state checking for email sending