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/...
---
website: https://mark.mcnally.je