SMTP EERROR: Failed to connect to server: Connection refused (111)

Bonjour,
j'utilise Wampserver/Windows10 pour développer + phpmailer.
Lorsque j'envoie un message via smtp.orange.fr à partir de wampserver tout se passe bien mais lorsque je passe en production chez OVH j'ai le message suivant:
SMTP ERROR: Failed to connect to server: Connection refused (111)

le pb vient donc d'OVH.
ceci est corroboré par le message suivant trouvé sur le web: sur ce même sujet
"Thanks for the advice @Synchro. I contacted HG, again, and asked them about the DNS and could there be anything in the firewall that would be blocking outbound traffic. Sure enough, it was the firewall. They made a change and now it works great! Really appreciate your and @drmad's help!"
Une idée?

note: mes essais en utilisant SSL0.OVH.NET se soldent systématiquement par un message d'erreur du type: ne peut se connecter au serveur.

Au passage, j'utilisais SendGrid pour envoyer les messages (Gratuit/limité).
La dernière version obligatoire authentifiant par un "apikkey" exige un php mini 10 et mysql 5.7.31 alors qu'ovh n'offre que mysql 5.6, donc j'étais coincé.

Avec mes remerciements
Christian

Bonjour Christian, avez-vous trouvé une solution à votre problème ? Je serais preneur…
Cordialement.

Bonsoir @TheophileB2

As-tu essayé avec la fonction mail(); ?

Bonsoir,
Oui, evidemment, c'est celle que je cherchais à faire marcher. Mais c'est bon c'est réglé, c'était un mauvais parametrage de wampserver dans le SMTP.

Tout fonctionne avec sendmail.

Bonne soirée