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.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. UNIX for Dummies Questions & Answers
Hi,
how to put some receipients for mail in bcc and some receipients in to. (2 Replies)
Discussion started by: prasee
2 Replies
3. Shell Programming and Scripting
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
4. UNIX for Advanced & Expert Users
Can anyone tell me how to add bcc or cc email address to mail command? (1 Reply)
Discussion started by: aravindbachu
1 Replies
5. UNIX for Advanced & Expert Users
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
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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
8. UNIX for Dummies Questions & Answers
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
9. Shell Programming and Scripting
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
10. UNIX for Dummies Questions & Answers
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
LEARN ABOUT OPENSOLARIS
mail
mail(1B) SunOS/BSD Compatibility Package Commands mail(1B)
NAME
mail, Mail - interactive message processing system
SYNOPSIS
/usr/ucb/mail ...
/usr/ucb/Mail ...
DESCRIPTION
/usr/ucb/mail and /usr/ucb/Mail are provided as links to /usr/bin/mailx. See mailx(1) for more information on the usage of these commands.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
/usr/ucb/mail
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
/usr/ucb/Mail
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO
mailx(1),attributes(5)
SunOS 5.11 19 Aug 1998 mail(1B)