Index: [Article Count Order] [Thread]

Date:  Mon, 28 Jan 2008 23:23:03 -0500
From:  "Brian N. Smith" <brian (at mark) nuonce.net>
Subject:  [coba-e:11824] Re: send mail to all users
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <009901c8622e$a4474150$1e64a8c0 (at mark) nuonce.net>
References:  <18e301c861c5$61fb7460$6302a8c0@x2>
X-Mail-Count: 11824

> how can i quickly send an email to all local users from the shell 
> (while
> getting the mail body from a file)?

Another option.  A small BQ Script that reads all users and all 
virtual sites.

http://www.nuonce.net/bq/get_user_email.txt

Just "chmod +x" the file, and run it.  It will show all users, and 
adds on the FQDN of the virtual site.  For instance.

user (at mark) www.domain.tld

It just prints to the screen.  You can paste it into notepad and 
search/replace the "www" if you wish.  Or you can write your script 
around this to mass mail people.

Good luck!
Brian