Get An Email List of All Authors On Your System
This little snip of code will dump out a list of all the users and their email addresses on your install in a comma-delimited format that you can easily import into your email client. It’s particularly useful on larger installs:
<mt:Authors include_blogs="all">
<mt:IfNonEmpty tag="AuthorEmail">
<mt:IfNonEmpty tag="AuthorDisplayName">"<mt:AuthorDisplayName />" </mt:IfNonEmpty>
<<mt:AuthorEmail />>,
</mt:IfNonEmpty>
</mt:Authors>
And the Authors tag allows for all sorts of cool filtering attributes so you can get at any group of authors in the system, ordered however you like:
- display_name: Specifies a particular author to select.
- lastn: Limits the selection of authors to the specified number.
- sortby: Supported values: displayname, name, created_on.
- sort_order: Supported values: ascend, descend.
- roles: comma separated list of values. eg “Author, Commenter”
- need_entry: 1 | 0 (default is 1)
- status: Supported values: enabled, disabled. Default is enabled.
Note: Some people have asked about creating an email list of all the commenters on the system, and it’s very simple. The code stays the same, but you just need to specify roles=”Commenter” and need_entry=”0” (since most commenters won’t have written an entry). Here’s the code to do it:
<mt:Authors include_blogs="all" roles="Commenter" need_entry="0" sort_by="display_name"><mt:IfNonEmpty tag="AuthorEmail"><mt:IfNonEmpty tag="AuthorDisplayName">"<mt:AuthorDisplayName />" </mt:IfNonEmpty><<mt:AuthorEmail />>, </mt:IfNonEmpty>
</mt:Authors>
Notice the code is much more compressed than the code given previously. If you tried the previous code, you probably noticed that the spacing is crazy because of all the hard returns and spaces we have in there. This second set of code I posted will give you a highly compact list of email addresses than can literally be copied and pasted into an email client.
Just make sure you use this for good, not evil.
- Comments (2)
- in the chapter, "Movable Type"
- tagged with author, email, management
InterAction:
14 March 20082. Jesse Gardner:
@Justin: Absolutely. In fact, the code is pretty much the same. I've updated the entry with details on how to do it.
YourThoughts?
(Minutia)
- Author:Jesse
- Published:Mar 13, 2008
- Chapters:
- Previous:
- Next:
GetUpdated
ElseWhere
AllChapters
- 2 articles in the chapter Accessibility
- 6 articles in the chapter Announcements
- 2 articles in the chapter Apple
- 5 articles in the chapter Blogging
- 7 articles in the chapter CMS
- 1 articles in the chapter Code
- 3 articles in the chapter CSS
- 16 articles in the chapter Design
- 1 articles in the chapter DIY
- 4 articles in the chapter Downloads
- 1 articles in the chapter Freebies
- 2 articles in the chapter Gadgets
- 5 articles in the chapter Journeys
- 1 articles in the chapter Miscellany
- 1 articles in the chapter Mobile
- 59 articles in the chapter Movable Type
- 2 articles in the chapter Plugins
- 1 articles in the chapter Print
- 3 articles in the chapter Projects
- 1 articles in the chapter Reviews
- 2 articles in the chapter SEO
- 8 articles in the chapter Social Networking
- 1 articles in the chapter Standards
- 4 articles in the chapter Writing
BiteSize.blog
ReaderFavorites
- CSS Image Framing
- Tools of the Web Design Trade, Pt.1: Where to Begin
- Tools of the Web Design Trade, Pt.2: Building Trust
- 10 Tips For Creating Website Mockups In Photoshop
- Movable Type As A Desktop App
- Redesign, Part 1: The Logo
- Redesign, Part 2: Stylesheet Philosophy
- The Social Graph in Plain Language
- Writing Your Own Autobiography: The New Persistence of Information
- Designing eComm 2008


















13 March 20081. Justin Hamilton:
could you do the same thing for commenters?