Problem sending email using OJS

Hello there!
I am tired to get rid of this email problem but could not do so, so far.
someone kindly help me out.
“There was a problem sending an email message. Please try again later, or contact your system administrator.”
In the log file, I get:
SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
Tried every solution.
Tried with both tls and ssl.
:frowning: I am stuck.