We talked about thanking people a month or two ago. Of course, you could write: “Thank you very much for the lovely book you sent me”.
But what about changing the sentence around a little and adding something a bit more personal? Something like: “What a lovely book you sent me. It’s the perfect present. I haven’t been able to put it down. Thank you so much!”