Submitted Questions

  • Syntax for mailx command

    Hello,I am trying to write a unix shell script program to send mail to cc and to list.I am using the '-c' option for mailx unix command,but am getting an error illegal -c option. Could any one please guide me to use the mailx command in unix shell scripting to send the mail to the Cc and To list along with the attachment ?Thanks in advanceAppreciate the response

    Mitra

    • Nov 24th, 2011

    Code
    1. uuencode attachment1 attachment1 | mailx -c x@yz.com,a@bc.com -s "subject" m@no.com