Integrate changes from olehs's repository:
https://github.com/olehs/SmtpClient-for-Qt