Maybe something like:

Please accept this letter as formal notification that I am leaving my position with XYZ company on September 15.

Thank you for the opportunities you have provided me during my time with the company. If I can be of any assistance during this transition, please let me know.

Sincerely,

Your Signature

?? There are a few on the internet if you type in resignation letter template
HTH
Kate