Here is a script you can use to send email from a linux command line if you need to use TLS (Transport Layer Security).
Copy and paste this into a file and run it using python: python test_smtp.py
.
I had to test SMTP credentials without installing a mail client (or something worse…), so the script is pretty basic.