Fix email_receipt() bugs.

Think you could make me and James contributors on the angel-... repos so we can tweak any issues we find?