Setup Sendmail on Ubuntu 20.04 Localhost and Use Gmail SMTP

READ: https://linuxconfig.org/configuring-gmail-as-sendmail-email-relay

SET APP PASSWORD ON GMAIL:
https://wpmailsmtp.com/gmail-less-secure-apps/#:~:text=What%20Is%20Less%20Secure%20Apps,with%20this%20setting%20turned%20on.

SORRY, ONLY ADMIN CAN SHOW THIS!
Modified php.ini in /etc/php/7.4/apache2

RESTART APACHE2

THE SEND EMAIL TOOK A LONG TIME ON LOCAL.
STOP SENDMAIL SERVICE IF NEEDED