same works with version 12 and below but in 15 its not working .
do i need to install any tools to use mail like " yum -y install mailx" ?..
Command i am using is echo "test mail" | mail -vs "Test email " firstname.lastname@example.org
02-Oct-2021 16:59 - last edited on 04-Jun-2023 19:17 by JimmyPackets
You can use ssmtp command.
echo "Subject: ssmtp test mail" | ssmtp email@example.com
26-Apr-2022 23:39 - edited 26-Apr-2022 23:41
You can try this
no its still not working all configurations remains the same .This worked before "df -h | mail -vs "free space " firstname.lastname@example.org "but with new version this is not.
need a replacement for this .
You could always copy /bin/mail from an older system and add it to the path or your scripts directory (and give it execute permissions via chmod +x mail). This has worked for me.