Both work. Handwritten letters feel more personal, making them a good choice for special occasions. Typed letters are perfectly fine for most situations though.