The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > The Lounge > What's on Your Mind? > Chat with iBot - Our RSS Robot Girl
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-07-2006
Amruta Pitkar Amruta Pitkar is offline
Registered User
 

Join Date: Aug 2006
Posts: 54
New to Unix, Sending Emails

Hi there
I am new to Unix ShellScripting. And I am assigned the following job. How Do I start with doing this ?

I have a text file. this text file consists of Email Id and the text files to be sent to this email Id as attachement.
I want to write a Unix Shell script to achieve this. Any idea how I can do this?

My input text file is in this format
aaa@abc.com,XYZ/EFG/HIJ/Email1.txt
bbb@jkl.com,XYZ/EFG/HIJ/Email2.txt
ccc@efg.com,XYZ/EFG/HIJ/Email3.txt

I want to send an attachment of XYZ/EFG/HIJ/Email1.txt to aaa@abc.com. Similarly to other users too. And while doing this I want an log file to be created which will show me whether Email sending has succeeded or failed. If failed why ?
Reply With Quote
Forum Sponsor