I'm trying to BCC e-mails through unix using the following command.
echo "E-mail message" | mailx -r Senders@Address.com -s "E-mails Subject" ~b BCC_Receiver@Address.com
But I get the error
~b... User unknown.
If I use
-b instead of
~b, I get the error
illegal option -- b
If I use mail instead of mailx, I get exactly the same erros.
However, when I try it interactively in the following way, it works.
mail -r Senders@Address.com -s Subject Receivers@Address.com ~b BCC_Receiver E-mail message . CC:
I'd like to make this work in a single command. How can I do this?
When I type
uname -a, this is the output:
s00va9939577 1 7 00CD96834C00.