Forum Discussion
bash: mail: command not found
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 " myemail@mydomain.com
Hi,
You can use ssmtp command.
echo "Subject: ssmtp test mail" | ssmtp myemail@mydomain.com
- SV2022Cirrus
No luck
Hello Karthikeyan.
You can try this
https://support.f5.com/csp/article/K13303339
Regards,
Dario.
- SV2022Cirrus
no its still not working all configurations remains the same .This worked before "df -h | mail -vs "free space " myname@mydomain.com "but with new version this is not.
need a replacement for this .
- melcaniacCirrus
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.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com