Hi,
I am using mailx command to send mail.
But unable to use -c option to send mails by cc list.
eg.
..mailx -s "subject" -c "CCLIST" "TOLIST"
Its showing " illegal option -- c"
I am using HP UX.
Can anybody help me out.
Thanks in advance..!
Hi,
I am using mailx command to send mail.
But unable to use -c option to send mails by cc list.
eg.
..mailx -s "subject" -c "CCLIST" "TOLIST"
Its showing " illegal option -- c"
I am using HP UX.
Can anybody help me out.
Thanks in advance..!
Try this,
mailx -s "subject" <to-addr> -c <cc-addr>
cc-addr should be a comma separated list of names.
Good thing people read the man pages of a command before complaining. Because nowhere in the HP-UX mailx page it states anything about supporting a -c switch. And it isn't in the POSIX page either (man mailx (POSIX)). Only (Open)Solaris, the *BSDs, and Linux support it.
One way would be to use mailx commands in your message, eg. put something like this into a file
~c carboncopy@example.com
~b blindcarboncopy@example.com
Hi!
This is a test
and pipe it into mailx:
mailx -s 'Subject' recipient@example.com < file
Hi,
Thanks alot.....!!Its working...!!