For emails, I'm guessing it depends on who you're emailing, just as it would be if you were talking to someone in person. I mean, if you're emailing a friend or a family member, I'm sure plain form would be fine. But if you're emailing someone new, or someone like a teacher, then you would use polite form.