adding support for emailing - used by confirmation and password reset processes