There are a few categories of formal letters and most of them have the same writing format, salutations, main body and ending.However, the information that you include in these letters differ upon to whom and on what topic are you writing.
The types of formal letters are
Inquiry letters
Acceptance letter
Sales letter
Reply to an inquiry
Approval letters
Claim letters
Apology letters
They have the same writing format but have different content.