![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Email Question - two email addresses | jyoung | Shell Programming and Scripting | 5 | 08-04-2008 02:00 PM |
| tc01947 | Forum Support Area for Unregistered Users & Account Problems | 0 | 05-07-2008 09:32 AM | |
| Send email where # is in the email address - Using Unix | jingi1234 | UNIX for Dummies Questions & Answers | 1 | 05-23-2005 12:23 PM |
| Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) | Vetrivela | UNIX for Advanced & Expert Users | 2 | 02-15-2005 10:43 AM |
| Kobecheez | UNIX for Dummies Questions & Answers | 1 | 10-25-2000 01:29 AM | |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have a txt file which contains the following details.
email address date other email address date other from this i want to take each email address and send mail with a message and put the date in the message ( in some specific place ). need to send mails one by one marking a copy to myself. please help The script is given below what i have developed. But this will only let me send the mail to all the people in the same time. i belive a for loop can do this for me. Please help me. TXTFILEFR="a.out" TXTSIGN="signature2.txt" DIRECTO="/opt/var/" SQLDIRECTO="/opt/var/so" SUBJECT="Your attachment" A="a.b@log.com" export ORACLE_SID=sid for user in $(cut -d: -f3 a.out) do echo $user echo "Hello, \n" > ${DIRECTO}/mail.out echo "\n message1.\n" >> ${DIRECTO}/mail.out echo "\message2.:\n" >> ${DIRECTO}/mail.out echo "\n mesg3.:\n" >> ${DIRECTO}/mail.out cat ${DIRECTO}/${TXTSIGN}>> ${DIRECTO}/mail.out ${DIRECTO}/mail.out elm -s " subject line " -b $user < ${DIRECTO}/mail.out done Last edited by srikanth78; 12-05-2005 at 05:18 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|