Fix dynamic email address resolution.
Refix dynamic email address resolution
Merge pull request #2 from alexpearce/fix-email

Fix dynamic email address resolution.