Napisał do mnie wczoraj.

English Translation

He wrote to me yesterday.

Napisać + do + to whom (genitive)
Mnie - genitive of ja