Added email functionality for syncs