Why not use the AD Users and Computers console?

Right click on domain, select search, click advanced tab, click "Fields" button and select "E-Mail address" and set the search criteria.

Not as much fun as scripting it, but it only took me 30 seconds to work out \:\/