Moved email functions to genericsite