How To Send Email From The Command Line!
We look at how to send email from the Linux command line in this video.
We first look at connecting directly to a SMTP server – Postfix in our case. We then use that to send an email.
Then we use mailx which is a nice way to send emails to yourself. We set up ssh login notifications and a daily report for our server.
This is basically how to get notifications from your Linux server.
The code used in this video: https://github.com/oidz1234/Examples/blob/master/daily_server_report.sh
—
website: https://mark.mcnally.je
by Mark McNally
linux smtp server