Hello @ayoubaliamc380
You need to install the SMTP extensions in the Magento and configured it.
Please download one of the free extensions available in the market and install it.
If you get the solution then please, "Kudos" and "Accept as Solution" for Token of Appreciation.