fixed sending local emails; fixed error messages
Merge branch 'stable'