How does it email an electronic receipt?

I did a purchase using my credit card, the merchant used the square and I then received an email with the reciept without giving my email.

Square Credit Card Reader

Square Credit Card Reader

Product No Longer Available

No Answers have been submitted