How to see if an invoice has been successfully emailed to a customer