made the sendReceipt method a little more flexible for other email classes