Re: Linux command line utility to send to email list?

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: keith smith
Date:  
To: Main PLUG discussion list
Subject: Re: Linux command line utility to send to email list?
If you are going to maintain a mailing list I would suggest a free http://mailchimp.com/ account.


 
------------------------
Keith Smith



On Tuesday, December 17, 2013 3:18 PM, Matt Graham <> wrote:

> On Tue, Dec 17, 2013 at 2:18 PM, <> wrote:
>> What would be the best *simple* command line utility to send an email
>> message to a small (100) list of email addresses?


You have a machine that's running an SMTP server or something that can
be used as a smarthost, right?  This machine could be used for this. 
Have a text file called listofmails.txt that had 1 mailing address per
line.  Then put the mail you'd like to send in mailtosend.txt.  Then:

for i in `cat listofmails.txt` ; do
    mail -s 'A SUBJECT' $i < mailtosend.txt
    done

Of course, this assumes you have a machine where the mail command
works, which might not always be the case.  If you have to use a
different From: address, then this won't work.

On 2013-12-17 14:41, Stephen Partington wrote:
> The idea of a mailing list might be a better idea. you can power one
> yourself with a listserv or use Google groups.


listservs can get complicated.

--
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss