Linux command line utility to send to email list?
Matt Graham
mhgraham at crow202.org
Tue Dec 17 15:22:01 MST 2013
> On Tue, Dec 17, 2013 at 2:18 PM, <joe at actionline.com> 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.
More information about the PLUG-discuss
mailing list