REwork email sending function to use new EDD_Emails class