What do you call a person who writes letters?

You could call such a person an epistoler.

epistoler, literary: A letter-writer; = epistler

Lexico

Epistolist is another word for a letter-writer.

Someone who writes epistles

Collins