added smtp enabled config check