Configuration SMTP OVH dans App.yml

Okay. My comment wasn’t specific to you, although you hadn’t mentioned you tried the correct port as well.

More general stuff:

  • in troubleshooting I wouldn’t try the wrong ports, it doesn’t make much sense
  • I would list port(s) I did try, and paste a link to the source which advises to use those ports so that
  • we don’t have to google it
  • you show us what docs you followed

You didn’t do these steps and look how many people joined the topic and still no answer.

On the link I pasted above you have SMTP server info, whereas other hostname and ports are used for IMAP. Two services, two different host names.
Since you didn’t hadn’t explained which ports you tried in which combination with what setting, we can only keep guessing what doesn’t work. Most likely the instructions linked above work just fine. If they don’t, paste your config for each try.