transaction 1: mark an unsent receipt as being processed get the marked receipt send email transaction 2: mark the receipt as sent