The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
email 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
Email Kobecheez UNIX for Dummies Questions & Answers 1 10-25-2000 01:29 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 12-05-2005
srikanth78 srikanth78 is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 2
Question Email in Ksh using elm

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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0