Hi All,
I want to send mail to multiple users..
Currently I am using below script
cat $STATUS_FILE|mailx -s "$SUBJECT" -r xxx@yyy.com $MAILTO
How can i give cc or bcc to in this script
Please help me
thanks in advance
Regards
RG
Hi All,
I want to send mail to multiple users..
Currently I am using below script
cat $STATUS_FILE|mailx -s "$SUBJECT" -r xxx@yyy.com $MAILTO
How can i give cc or bcc to in this script
Please help me
thanks in advance
Regards
RG
on Solaris 10, I see both -c and -b options:
-> man mailx |less -N
done
1
2
3
4 User Commands mailx(1)
5
6
7
8 NAME
9 mailx - interactive message processing system
10
11 SYNOPSIS
12 mailx [-BdeHiInNURvV~] [ -f
13 [file | +folder] ] [-T file] [-u user]
14
15 mailx [-BdFintUv~] [-b bcc] [-c cc] [-h number] [-r address]
16 [-s subject] recipient...
17
18 /usr/ucb/mail ...
19
20 /usr/ucb/Mail ...
21
22 DESCRIPTION
23 The mail utilities listed above provide a comfortable, flex-
24 ible environment for sending and receiving mail messages
25 electronically.
26
27 When reading mail, the mail utilities provide commands to
...
echo hello | mailx -s "test" -c test2user -b testuser root
echo hello | mailx -s "test" -c ygemici@mailx.com -b ygemici2@mailx.com ygemici@redhat.com
I was tried above yesterday but it didn't work....
cat $STATUS_FILE|mailx -s "$SUBJECT" -r rgumm@yyy.com -bcc rgumm@zzz.com
I have received System Administrator
Your message did not reach some or all of the intended recipients.
Subject: Daily Health Checks
Sent: 6/14/2010 6:05 PM
The following recipient(s) could not be reached:
c@1234.yyy.com on 6/14/2010 6:05 PM
The e-mail account does not exist at the organization this message was sent to. Check the e-mail address, or contact the recipient directly to find out the correct address.
< 1234.yyy.com #5.1.1 SMTP; 550 5.1.1 <c@1234.yyy.com>... User unknown>
---------- Post updated at 04:35 AM ---------- Previous update was at 04:15 AM ----------
Thanks Guys.. Now i got the answer..
I have give -bcc instead of -b and -cc instead of -cc
Thakns to all
regards
RG