I thought the emails came out after she had already beaten Sanders.
No. Sanders famously came to Hillarys defense six months into the scandal and said during a debate (to raucous applause) that people were sick and tired of hearing about her damn emails.