What is the most portable or standard way to send an email from the console or a script on Linux, and possibly Unix? 
Standard and portable way to send email from console?
command line;email;standard;portability;mail command
To do this, you can use the mailx command. Below is an usage example:mailx -v -s Subject -S smtp-use-starttls -S ssl-verify=ignore -S smtp-auth=login -S smtp=smtp://<server_name>:25 -S from=email@domain.com -S smtp-auth-user=<username> \-S smtp-auth-password=<password> email@domain.comThis example is using SSL and SMTP authentication.