Configure mSMTP to make WordPress able to send you email. This is a two step guide.
Step 1: https://thecustomizewindows.com/2023/05/easily-set-up-email-with-smtp-on-ubuntu-server/
Step 2: https://thecustomizewindows.com/2023/05/configure-wordpress-to-send-emails-using-msmtp/