Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable CC Carbon copy in mailx command

Sharanakumar
Occasional Visitor

Unable CC Carbon copy in mailx command

I am trying to send an e-mail from my shell script on HP-UX. I want to send it to To lists and CC lists but mailx is not supporting. The -c is not supported. Please advice if any other option is available.

1 REPLY
Dennis Handly
Acclaimed Contributor

Re: Unable CC Carbon copy in mailx command

You can use the embedded "~c name" command:

mailx -s "subject" foo@bar.com <<EOF
~c foo2@bar.com
stuff body.
EOF