@Ja***
, he is unlikely to get questioned at all coming in to thailand if he doesn't have an extensive history of living here on back-2-back visa exempt or tourist visa entries.
With that being said, once he's here, rather than flying out and back in to get a 30 day visa exempt entry stamp he would be better served spending the time in another country to get a single entry tourist visa. it only takes a couple days
But yes, a letter from you stating he'll stay at your place should work IF he's asked.
Most people that are questioned are asked about proof of funds (20K baht in cash or the equivalent in another currency) rather than proof of lodging.