Bcc in mailx command in Unix


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Bcc in mailx command in Unix
# 1  
Old 05-11-2010
Bcc in mailx command in Unix

Hi,

At present we have been using the mailx command which is working perfectly and the command is as follows;
Code:
mailx -s "$DESCR1" -c $DLIST_CC -r $REPLY $DLIST

We would like to add a Blind carbon copy "Bcc" in this mailing list using mailx. Please let us know how this can be done in ksh.
# 2  
Old 05-11-2010
This has nothing to do with the shell you're using, but what parameters your mailx command supports. Check the man page for your system on whether or not it supports the '-b' option.
# 3  
Old 05-11-2010
Hi,

I checked the man pages for mailx and I do not find -b in the flags section. However I found the following. Please let me know if this can be used and how.

PHP Code:
Mail Editor Subcommands for the mailMail Command

       By 
default, the Mail program treats lines beginning with the ~ (tildecharacter as subcommandsThe following list
       
describes the subcommands used while in the mail editorThe editor recognizes subcommands only if you enter them at
       the beginning of a 
new line.

~
b AddressList
            Adds names in AddressList to the 
list of addresses to receive blind copies of the messageThe ~b subcommand
            can only be used to add to
not change or deletethe contents of the Bcc: List. 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problem getting mailx to send true Bcc mail to multiple recipients

I am having trouble getting mailx to send multiple Bcc mails out without everyone in the list of recipients seeing everyone else's email addresses. I looked at the man pages of my system and seem to be following the syntax correctly, but the mails still go out as if I were just putting in a list of... (7 Replies)
Discussion started by: legrandtimonier
7 Replies

2. Shell Programming and Scripting

cc and bcc and to command in shellscript

Hi All, I have tried some below commands , some of these are working. some are not working. I want to add this "TO ,cc, bcc, from " in shellscript. can anyone give me the example for this. mailx -s "$SUBJECT5" "$EMAIL" < $EMAILMESSAGE above code is working but i want to... (5 Replies)
Discussion started by: aish11
5 Replies

3. UNIX for Dummies Questions & Answers

Mailx command in unix shell script, its throwing below error

How to use Mailx command in unix shell script, its throwing below error #!/bin/ksh let x=3 If ; then mailx -s “ $x is greater than 2” example@gmail.com << EOF This is the message body EOF fi its throwing error as syntax error at EOF... (10 Replies)
Discussion started by: only4satish
10 Replies

4. Shell Programming and Scripting

Email with cc and bcc option

Hi, I am able to send email from AIX using the following command. cat email.txt | mail -s "Mail Subject" venkat@gmail.com Our requirement is send email with cc and bcc option. We are getting email with from email address as our UNIX server user. We would like to change that, please let us know... (2 Replies)
Discussion started by: vfrg
2 Replies

5. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

6. UNIX for Advanced & Expert Users

Help needed on unix mail with bcc,

Hello Everyone, I'm using UNIX 5.3, I'm using command line mailx or mail command to send emails to multiple email addresses and i need to include bcc (background corbon copy). Some Manuals says i can use -b flag to send to bcc but my unix does not recognize the flag "-b". And some manuals says... (2 Replies)
Discussion started by: aravindbachu
2 Replies

7. UNIX for Advanced & Expert Users

mail command with bcc, cc

Can anyone tell me how to add bcc or cc email address to mail command? (1 Reply)
Discussion started by: aravindbachu
1 Replies

8. Shell Programming and Scripting

Unix mail with bcc option

Hello Everyone, I'm using UNIX 5.3, I'm using command line mailx or mail command to send emails to multiple email addresses and i need to include bcc (background corbon copy). Some Manuals says i can use -b flag to send to bcc but my unix does not recognize the flag "-b". And some manuals says... (1 Reply)
Discussion started by: aravindbachu
1 Replies

9. UNIX for Dummies Questions & Answers

bcc in mails

Hi, how to put some receipients for mail in bcc and some receipients in to. (2 Replies)
Discussion started by: prasee
2 Replies

10. Shell Programming and Scripting

BCC address not working (mimesender)

I modified the following mimesender script so I can send also to BCC adresses: https://www.unix.com/showthread.php?t=17065 Everything is working and correct. Except the email address(es) in BCC are not delivered. When I set the debug-mode ON I can see the BCC header and when I receive the... (1 Reply)
Discussion started by: michaelv
1 Replies
Login or Register to Ask a Question