I am trying to trigger mail using mailx
Below is the Command which i am using
NOTIFICATION_GROUP=$(cat email.lst)
mailx -s "Success Of the ABC" $NOTIFICATION_GROUP < log_file.txt
email.lst contains
[email protected]
[email protected]
[email protected]
[email protected]
When i try to trigger a mail i am getting below error and also i am not receiving any mail
[email protected]
[email protected]
[email protected]
[email protected] invalid character '\012'
Send options without primary recipient specified.
Usage: mailx -eiIUdEFntBDNHRVv~ -T FILE -u USER -h hops -r address -s SUBJECT -a FILE -q FILE -f FILE -A ACCOUNT -b USERS -c USERS -S OPTION users
Could anyone help me out with the above issue. It will be very helpful