Install latest/stable of ssmtp
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
sSMTP is a simple and lightweight MTA to deliver mail from a computer to a mail hub (SMTP server).
How to configure it
First you need to create your configuration file and save it here: /var/snap/ssmtp-snap/current/ssmpt.conf
You can use this command to obtain a template for your configuration file:
ssmtp-snap.config
How to use it
You can use this command to obtain a template for your email file:
ssmtp-snap.email
To send an email
ssmtp-snap.ssmtp -v recipient@example.com < email.txt
To send an email overriding the From address
ssmtp-snap.ssmtp -f your_email@example.com -v recipient@example.com < email.txt
Generate an embeddable card to be shared on external websites.
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.