Articles

How to pass To, cc and bcc syntax for mailx

February 26, 2013 at 12:00:06
Specs: UNIX

i have a script where i would like to bcc a distribution list group, and have another group in the TO area and i want to CC myself.

what syntax do i use keep in mind its all in one script. i already know the bcc is ~ name of distribution list


See More: How to pass To, cc and bcc syntax for mailx

Report •


#1
February 26, 2013 at 13:39:42

Check to see if the Unix you are using supports the -b or -c options of the mail or mailx command. -b is the blind copy option and -c is the copy. Some unix versions use ~b instead of -b.

If you have more than one blind copy recipient, the string needs to be double quouted at least on my Solaris 9 box:

# UNTESTED
-b "user1@computing.net user2@computing.net"

This google or a variation will provide a lot of examples:

unix mailx bcc example


Report •
Related Solutions


Ask Question