maxmixiv figured it both ways

Of course, Genitive письма is possible, but sounds bookish/old-fashioned to me.
I can't explain it, because I don't know grammar rules, but here people usually say it in Accusative.