Self-signed certificate in certificate chain error

I want to run my next js nodemailer api but it is not working:

{
    "success": false,
    "message": "self-signed certificate in certificate chain"
}

I click to sent button and i get this message