Add an option to disallow sending sharing emails to non-owncloud users

Fix #10836
Merge pull request #11214 from owncloud/issue/10836

Add an option to disallow sending sharing emails to non-owncloud users