Usually everyone writes a formal letter for any kind of purpose. There are few informal letters too, which can be used for some occasions and to persons whom you know very closely. Have a look at the sample informal thank you letter format given below.
Name of concerned person,
Address and name of the company,
Dear Ms. Or Mr Name,
Content of the letter, thanking for some reasons.
Best wishes from,