Update config/config.sample.php

added parameter mail_smtpauthtype to set SMTP authentication type.
Update lib/mail.php

added parameter mail_smtpauthtype to set SMTP authentication type.
Merge pull request #1318 from j-ed/master

added parameter mail_smtpauthtype to set SMTP authentication type.