If you recently read a book and liked it, tell the author. But if you really want to help, post a review on Amazon and Goodreads, because doing so boosts an author's ranking and makes them more visible online.
The review can be just a few words: Liked it. Enjoyed it. The book entertained me. I could relate to the story or the characters.