If you're using Google Workspace Email (Formerly G Suite) then your WordPress website needs to be configured to be able to send mail via Google Workspace Email.
You can't send email using your server if you've configured MX records for Google Workspace Email.
Please watch the following tutorial on how to set up your WordPress site to send email using Workspace Email.
Or if you prefer to read the step-by-step instructions visit the link below.
https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/
