Hide QMail when not selected and hide sendmail when not available on the server

Fix #7559
Use command -v to check for sendmail

Fix #7559
Merge pull request #7564 from owncloud/issue/7559

Hide QMail when not selected and hide SendMail when not available on the server