Closed sunmingtao closed 4 years ago
If getting
ssmtp: Authorization failed (534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor m64sm11949935pga.55 - gsmtp)
Then follow https://support.google.com/mail/?p=InvalidSecondFactor to generate an app password
sudo nano /etc/ssmtp/ssmtp.conf
https://wiki.archlinux.org/index.php/SSMTP
If getting error of "invalid credentials", under the Gmail Account settings ,there would be an option saying "Allow less secure Apps ", turn it ON.
To test
ssmtp myemailaddress@gmail.com < msg.txt