computing
  • 3

How To Pass To, Cc And Bcc Syntax For Mailx

  • 3

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

Share

1 Answer

  1. 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@lgildv5i97.onrocket.site user2@lgildv5i97.onrocket.site”

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

    unix mailx bcc example

    • 0