This necessary line was missing from my php.ini file:
;extension=php_openssl.dll
It's needed in the Dynamic Extensions / Windows Extensions section in order to send SMTP mail using tls.
Without it, this error occurs:
Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?