Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

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


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

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

done < notifylist.lst

Thanks in advance,
Awaiting for your 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

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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:48 AM.

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