Failed to send mail: An unknown error occurred with SMTP authentication. Please check your error logs. end of file reached

Hello, can anyone help me from this issue?
I tried using SMTP to send mail from custom mail, and I have been following the instructions but there is error that I failed sent email but I don’t understand the issue and I don’t know how to solve it.