This is a simple and best format in general
The General Manager/
Sub:- Resignation Letter
This is to inform you that I has been working in our company since dd/mm/yyyy as a designation. I was satisfied with my duties that was allotted to me.
( Reason for Resignation )
I would like to thank you for giving me an opportunity to serve in your company through these periods