BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Messaging
Showing results for 
Search instead for 
Do you mean 

Unable CC Carbon copy in mailx command

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
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