LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 02-06-2008, 09:33 AM   #1
naren_0101bits
Member
 
Registered: Jul 2004
Location: Guntur
Posts: 44

Rep: Reputation: 15
Post Regarding mailing to a distribution list (DL) using mail/mailx command


Hi,

I just got strucked-up in using mailx command to send mails to a distribution list.

Till now, in my program, i am using mailx command to send mails to a list of mail id's which are stored in a specific file named notifylist.lst

And now, i need to send the mails to a Distribution List named DL_Vendor_Prod_Team instead of to a list of mail id's.
Please, can anyone give me some idea or light into this issue so that i can send mail to the distribution list using mailx.


My current code is like:
------------------------

CONTENT="Content of the mail"
SUBJECT="Subject of the mail"
while read mail_address
do

echo $CONTENT | mailx -s "$SUBJECT" $mail_address

done < notifylist.lst


Thanks in advance,
Awaiting for your reply

Naren
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailing list subaruwrx Linux - Software 0 12-21-2004 09:38 AM
mail(mailx) to be nullclient? Chowroc Linux - Networking 0 12-18-2004 05:17 AM
Composing and sending HTML mail from mailx stv_t Solaris / OpenSolaris 2 03-15-2004 03:23 PM
Mailing list/mail server iwkua Linux - Newbie 0 12-22-2003 11:29 AM
know a c++ mailing list nakkaya Programming 1 07-02-2003 09:45 AM


All times are GMT -5. The time now is 08:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration