Am using moodle version 3.8.
I checked the Outgoing Mail configursations, they are Ok. I also tried leaving the default values. Still get same error.
Hosted the moodle site on Digital Ocean.
"I checked the Outgoing Mail configursations, they are Ok"
It would work if they were! IIRC, DO actually blocks outgoing SMTP, so how have you configured mail?