[prev in list] [next in list] [prev in thread] [next in thread] 

List:       centos
Subject:    Re: [CentOS] Conversion from Centos 5 to Centos 7 & mailx changes
From:       "Gregory P. Ennis" <PoMec () PoMec ! Net>
Date:       2020-09-05 14:17:19
Message-ID: 5e4b0b425a0696c7d509ccc4565f08b979d18958.camel () PoMec ! Net
[Download RAW message or body]


Stephen and Kenneth,

Thank you very much for your help.

I tried 'MAILRC=/dev/nul' which I put in /etc/mail.rc as

'set MAILRC=/dev/null'

But I did not identify that this changed any behavior.

The link below was very helpful Stephen thank you for your kindness in digging this \
out for me.
https://www.digitalocean.com/community/tutorials/how-to-send-e-mail-alerts-on-a-centos-vps-for-system-monitoring


In the end the above link gave me a grammar and syntax that worked, but it is \
requiring a change in every line of code that the 'mail' command had been used.  the \
following syntax and grammer gave me what I needed.

echo | mail -s "Subject" -r from@address -q /loc/to/body.txt email@address

Thank you again for your help!!!

Greg

_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic