Endpoint mail, can't make it work

Hi helpers, this should be a basic question but I have dealing with it for 3 days (which ChatGPT help) with no success…
See annexed are all the info I have available (for a very basic implementation), hope you can point out what I’m doing wrong…

This is the endpoint

This is the sketch

ESP32 is online

it works fine with IDE testing

this is the result I get when running it
errora

Many thank in advance!