Dear [Recipient’s name]:
This letter is to formally announce my resignation from [company name], starting today. My last day will be [two weeks from today].
It has been a pleasure to work for [company name]. Please let me know how I can help to make a smooth transition during my remaining time here.