Hi, @PiotrM.
Thanks for your patience.
I see that you’re setting $port = 587 and $encryption = SSL. Would you mind trying the following combinations and let me know if either work?
$port = 587and$encryption = TLS``$port = 465and$encryption = SSL``