Hi,
"protocol = smtp" needs to be added to the stunnel.conf section in order to enable the explicit (STARTTLS) SMTP negotiation.
Thanks all!
Yes, I added the "protocol = smtp" and also username, password and authentication commands, so it now looks like this:
[smtp] accept = 25 protocol = smtp protocolUsername = xxxxxxxxxx protocolPassword = xxxxxxxxxx protocolAuthentication = login connect = smtp-mail.outlook.com:587
That stopped it giving the error but it still wouldn't send, with the mail client giving an error. So also had to disable SMTP authentication in the mail client program and now it works. :)
Thanks again for your help.