How do you send a thank you after an interview?

I used to do a typed formal letter, but lately I send almost all via email.