What is a sample of a formal letter?

Resignation, application and invitations are some of the examples of a formal letter. These are commonly written with formal template and layout.