Dear All,
(on Rocky Linux 9.5, s-nail v14.9.22); after upgrading a CentOS 7 to RL
9 I tried to send a cli mail command to notify the users (2188) of a
service as bcc.
I noticed that mail/mailx command has become s-nail and I tried to adapt
the command but something didn't go as expected.
This is the command:
`cat my_mail.txt | /bin/mail -s "my subject" -b ${bcc_recipient} -r
[email protected] [email protected]`
where ${bcc_recipient} contains the bcc recipients like this
"[email protected] -b [email protected] -b [email protected]..." and so on. My
idea is that the first one of the list takes the "-b" from the cli
option and the others from the variable.
The result it that the emails are sent but the list of the bcc
recipients appears in the Subject. I don't understand if it's my fault
on understanding the cli options or if it's a too big number of bcc
causing this behaviour.
Thank you
regards, Stefano