added emailing of a purchase receipt