Added functionality to mail an export to the logged in user