issue #21836: Make email helper functions available generally.
issue #21836: Be sensitive to public flag.
issue #21836: Be sensitive to public flag.
Merge pull request #1013 from jrogelstad/21836a

issue #21836: Email refinements