Error trying to send pipeline alert emails (Unsupported or unrecognized SSL message)

Well, I have this pipeline and I want to send an email if it fails.

I have configured all parameters, but it keeps returning the error:

Caused by: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message

The protocol is smtps

And I’ve added some Java mail properties
mail.smtps.auth => true
mail.smtps.starttls.enable => true

I don’t know if I’m missing another java mail properties, or if it’s something else.

If someone can help, I’d appreciate.