Hi Neil
the script so far is:
set EMAILS_FILE = marym26@aol.com
set MESSAGE_FILE = /home/myname/letter
set LOG_FILE = /home/myname/mail.log
cat $MESSAGE_FILE | mail $EMAILS_FILE
echo 'date' >> $LOG_FILE
echo $EMAILS_FILE >> $LOG_FILE
The output when I cat mail.log is:
the date info
my aol...
Neil - I've got the date working. But I'm still having problems with the name of the email recipient. What's comimg up is the path name to email (/home/myname/email). What am I doing wrong? I don't understand the while/do. The system I'm using isn't accepting that command. It' a bash shell if...
Neil - I appreciate your help but I'm a total newbie and still have some questions. I assume the $person is a variable I have to assign. How???? Also how do you create a list of emails? When I cat the file is this file the file I'm sending in the emails or a file I've created for the tracking...
Please help!!!
I have to create a bash script which mails the contents of a file to other users. I have to also create another file in my home directory which contains a log of the emails that I have sent. The script is supposed to append to this file the current date and time followed by the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.