![]() |
|
|
|
|
|||||||
| 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 |
| Email Question - two email addresses | jyoung | Shell Programming and Scripting | 5 | 08-04-2008 10:00 AM |
| tc01947 | Forum Support Area for Unregistered Users & Account Problems | 0 | 05-07-2008 05:32 AM | |
| Send email where # is in the email address - Using Unix | jingi1234 | UNIX for Dummies Questions & Answers | 1 | 05-23-2005 08:23 AM |
| 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 06:43 AM |
| Kobecheez | UNIX for Dummies Questions & Answers | 1 | 10-24-2000 09:29 PM | |
|
|
Submit Tools | LinkBack | Thread Tools | 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 01:18 AM. |
| Forum Sponsor | ||
|
|
|
|||
|
What i am trying to do is to send mail to all the email addresses in the text file at the same time. But i want to put all the email addresses in the bcc field so that the people do not see each others addresses.
|
|||
| Google The UNIX and Linux Forums |