![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem while sending message and attachment with mailx | nihar.dutta | Shell Programming and Scripting | 2 | 08-09-2007 11:15 AM |
| Mailx problem | FredSmith | UNIX for Dummies Questions & Answers | 5 | 07-12-2007 08:10 AM |
| Problem with mailx command when sending attachment. | miltony | Shell Programming and Scripting | 2 | 12-02-2005 12:43 PM |
| mailx problem | djbartkow | UNIX for Dummies Questions & Answers | 1 | 06-27-2005 04:11 PM |
| mailx problem | iastorms | UNIX for Dummies Questions & Answers | 2 | 05-11-2005 12:53 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
problem with mailx
Hi unix lovers,
I have some problem with using mailx. I want to send mail as per the instructions in a file. The mail does not reach to CC recepients. To get a clearer picture, this is what I am typing on unix prompt. $ $ mailx ashishp@suntech.com < mail.txt $ And my mail.txt looks as below $ cat mail.txt ~s testing ~c 'vganta@suntech.com,ajaygo@suntech.com' This is just testing $ I am using solaris. $ uname -a SunOS snvi003 5.8 Generic_117350-20 sun4u sparc SUNW,Sun-Fire-V240 $ I have checked with the man pages but could not find any useful info. Any pointers would help. thanks in advance.. -Ashish |
|
||||
|
Matrixmadan,
thanks for the reply. But the option -c and -s work properly when I give the CC list in the command line itself. This is not true in my case. I have written the subject, CC list and contents in a file. If I use -s and -c in the file I get the mail as below " -s testing -c 'vganta@sunteh.com,ajaygo@suntech.com' This is just testing " i.e. I receive the cc list and the subject in the mail itself. The mail does not reach to CC recepients. If i use ~s and ~c in the file, subject line work properly. If there is one mail id in CC list it work properly. But if i use more mail ids in CC list no CC recepient get the mail. Please advice how to get it worked. -Ashish |
|
||||
|
Matrixmadhan,
I am not able to send mail to CC recepients when there are multiple mail ids in CC list. This is what I entered on unix prompt. $ mailx ashishp@suntech.com < mail.txt And my mail.txt looks as below $ cat mail.txt ~s testing ~c 'vganta@suntech.com,ajaygo@suntech.com' This is just testing $ Note that ~s and ~c are part of my file above. Above I have used cat command to see the file. Hope my question is clear. -Ashish |
|
||||
|
having multiple receipients in CC,
use the following format, Code:
mailx -c "`cat ccfile`" -s "sub" "RECEIPIENT_ID" < text >cat ccfile abc@xyz.com uvw@sdh.com |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|