The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



Thread: mailx
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 05-14-2008
varungupta varungupta is offline
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
Quote:
Originally Posted by Paul Byrne View Post
We are using mailx to send email alerts. On occasions, it is updating our Distribution list with the mesage content.

The following is the relevant portion of the script :-
Code:
MAILGROUP=`more $MDS/feeds/alerts/distribution.lst`
export MAILGROUP
echo " " | mailx -s "MDS Alert - Refresh Complete" $MAILGROUP
The following is the distribution.lst :-

<email addresses>
From mis Wed Apr 30 10:20:07 2008
To: ::::::::::::::, <email addresses>
Subject: MDS Alert - Refresh Complete
Content-Length: 2

Note: I have replaced the list of email addresses with <email addresses>

Any ideas why the Distribution List is being updated and how to stop it happening ?

Thanks,
Paul.

Hey,
Subject=Subject of mailing
MAIL_RECIPIENTS=xyz@abc.com
cat FILENAME1 | mailx -s "$Subject" $MAIL_RECIPIENTS


You can try this !
Thanks
Varun.
Reply With Quote