Error on sending an email

I am getting an error “Could not instantiate mail function” inside error log file

When I send an email I got this error.
From Administration> hosted journal> choose any journal> users> select any user> Email
When I send an email to any user I get this error


Hi @Dr_Ahmed_Ebada,

Could you please indicate which version of OJS you are currently using?

Kind Regards,

I am using ojs-3.3.0-7

I solved that error, but I still have another error when I user forgot password, I get the following error