Operating System - HP-UX
1752587 Members
4190 Online
108788 Solutions
New Discussion

Re: 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 1
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