This is for configuring Linux to be able to send emails.
This information was obtained from here for my enjoyment and so I don't have to look for this again. This has been tested on a Raspbery pi and an Ubuntu machine.
This configuration uses Gmail as the email carrier. It will work with others, just used gmail in this configuration. Less secure apps or 2 factor with app passwords needs to be enabled for this configuration to work.
sudo apt-get install ssmtp mailutils -y
sudo mv /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf.bak
sudo nano /etc/ssmtp/ssmtp.conf
root=GmailEmailAddress@gmail.com
mailhub=smtp.gmail.com:587
hostname=raspberrypi
AuthUser=GmailEmailAddress@gmail.com
AuthPass=TheGmailPassword
FromLineOverride=YES
UseSTARTTLS=YES
sudo nano /etc/ssmtp/revaliases
root:GmailEmailAddress@gmail.com
postmaster:GmailEmailAddress@gmail.com
echo "Test Email" | mail -s "Test Email" DestinationTestEmail@Address.com