Sending email with CC BCC and sender's address in unix mailx
In my case I have to keep multiple id
's in cc which has been done by giving the email-id
's comma separated one by one as below:
$ echo -e "Hi Team, \n \n Action Needed \n \n Regards, \n XYZ team"| mailx -s "subject" -b bcc_user1@some.com,bcc_user2@some.com -c cc_user1@some.com,cc_user2@some.com -r sender@some.com receiver@xyz.com
Also made use of the echo
command to pass multiple lines to mailx
utility. Thought it will be helpful.