Preparing datasets for email distribution