Unable CC Carbon copy in mailx command (669 Views)
Reply
Occasional Visitor
Posts: 1
Registered: ‎09-06-2013
Message 1 of 2 (669 Views)

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.

Acclaimed Contributor
Posts: 26,008
Registered: ‎03-06-2006
Message 2 of 2 (654 Views)

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

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.