More work on sending email reciepts