Re: Unable CC Carbon copy in mailx command (327 Views)
Reply
Occasional Visitor
Sharanakumar
Posts: 1
Registered: ‎09-06-2013
Message 1 of 2 (342 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.

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,890
Registered: ‎03-06-2006
Message 2 of 2 (327 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

Please use plain text.
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