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.
Modified php.ini in /etc/php/7.4/apache2
|
1 2 3 |
; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = /usr/sbin/sendmail -t -i |
RESTART APACHE2
|
1 2 3 4 5 6 |
satria@teddy:~$ sudo gedit /etc/php/7.4/apache2/php.ini satria@teddy:~$ sudo systemctl restart apache2 satria@teddy:~$ sudo systemctl stop sendmail satria@teddy:~$ sudo systemctl status sendmail |
THE SEND EMAIL TOOK A LONG TIME ON LOCAL.
STOP SENDMAIL SERVICE IF NEEDED