Small fixes to receipts and change the logic of mail preview