![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with mail command | hern14 | UNIX for Dummies Questions & Answers | 2 | 05-15-2008 06:25 AM |
| Mail command | FeNiCrC_Neil | UNIX for Dummies Questions & Answers | 2 | 08-31-2007 10:12 AM |
| mail command on sco box | benefactr | UNIX for Advanced & Expert Users | 0 | 08-17-2007 02:29 PM |
| mail command | habuzahra | UNIX for Dummies Questions & Answers | 4 | 01-08-2007 06:00 AM |
| mail command | garric | Shell Programming and Scripting | 4 | 04-24-2006 01:09 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help with mail command
Hi Friends,
While sending a mail from a shell script, is there a way i can mark some names in the To list and for some names i need then to be in the cc list. Are there any options available for the same with the mail or mailx xommands where i can specify the names to be present in To : list or cc: list. Thanks in advance |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
mail -c cc-addr to-addr
|
|
#3
|
||||
|
||||
|
You can try with send mail utility...here is a script
SUBJ="Send mail from Unix with file attachments" TO=urmail.com CC=otherrec.com,onemore.com ( cat << ! To : ${TO} Subject : ${SUBJ} Cc : ${CC} ! cat << ! HOPE THIS WORKS you got the mail from sendmail utility ! uuencode watch_script1.txt watch_script1.txt ! ) | sendmail -v ${TO} ${CC} |
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
||||
|
||||
|
yes you are right "!" must be removed after uuencode command.Thanks for correcting me.I am not sure about MIME headers may be you can elaborate on this....thanks
|
|
#6
|
||||
|
||||
|
I've asked whether sendmail will add MIME-headers or they must be added manually??
|
|
#7
|
|||
|
|||
|
Hi Hitori,
I tried using mail -s "This is the subject" -c cc-abc.com to-def@gillette.com < $HOME/mail_contnts.txt it is giving me invalid options error. |
|||
| Google The UNIX and Linux Forums |