I received a letter from a friend.

Literal

Friend [from-から] letter [object-を] received.

もらう ('to receive') is the plain benefactive — simply stating receipt without the active-favor nuance of ~てもらう. から marks the source. A very clean beginner sentence.