Please accept this letter as a formal notification that I wish to resign from my position as (title) with (XYZ company), my last working date will be on (date).
I have enjoyed working for (XYZ company) and appreciate the support and opportunities you have provided me during my tenure with the company.