finished mailer and wrote user purchase integration test