LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-26-2010, 06:02 AM   #1
esibilike
LQ Newbie
 
Registered: May 2010
Posts: 5

Rep: Reputation: 0
Mailing List


I am new to Linux and we want to broadcast an email to every member of our institution.
Currently we have more than 150 email addresses and 2 email lists.
the mail server is running on Redhat version 5, x86_64/i386
 
Old 05-26-2010, 07:47 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,909

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

What mail server you're running? Sendmail, postfix, other?
For sendmail that comes with RHEL, take a look at this

Regards
 
Old 05-26-2010, 07:18 PM   #3
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Rep: Reputation: 196Reputation: 196
I use such script:

mailing
Code:
#!/bin/bash

# "first@,second@" -- one e-mail to all (without spaces)
# "first@, second@" -- each e-mail separately (with spaces)
ADDRESSES="ADDRESSES.TXT"
MAIL="MAIL.TXT"
SIGNATURE="~/.signature"

SUBJECT="This isn't spam 3"

# "first -a second -a third" -- a few attachments
ATTACHMENT=""

REPLY="me@my.own.org"

cat $MAIL > /tmp/mail
cat $SIGNATURE >> /tmp/mail

for address in `cat $ADDRESSES`
do
    if [ "$ATTACHMENT" != "" ]
    then
        nail -s "$SUBJECT" -a $ATTACHMENT -r $REPLY $address < /tmp/mail
    else
        nail -s "$SUBJECT" -r $REPLY $address < /tmp/mail
    fi
done

rm /tmp/mail
To use it you have to prepare ADDRESSES.TXT, MAIL.TXT, and ~/.signature files as well as fullfill SUBJECT, ATTACHMENT, and REPLY variables.
 
  


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 peten General 5 05-25-2010 02:14 PM
Mailing List mitchell2345 Linux - Server 1 03-05-2009 12:45 AM
Mailing List gurl4sh25 Linux - Software 4 08-20-2007 12:19 AM
Mailing list subaruwrx Linux - Software 0 12-21-2004 09:38 AM
know a c++ mailing list nakkaya Programming 1 07-02-2003 09:45 AM


All times are GMT -5. The time now is 03:09 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