Over here you just write "I hereby resign per date X, according to legal timelines"; that's it. There are form letters on the web. No niceties.

We have 3 months notice by law, from either party. Execs have 6 or more.