I think a letter is preferred, but I just used email because I wanted to save the couple bucks letters would've costed. I'd so much rather get a beer with that money! No school complained about my using email.
I sent an email and a letter. 🙂 It's best to let them know ASAP so no one drops you for holding multiple acceptances, and also for people waiting for your spot! 🙂