Sadness and regret are expressed in this positive resignation letter.
I am very sad that I have to inform you that I'm leaving (the company). I have enjoyed working with everyone and have learned a great deal, and my departure in no way reflects badly on the company. But my circumstances have changed and this is something that I must do. Therefore, please be informed that I am resigning as of Friday, July 15. If I can help in training a replacement before I go I'll be happy to do so. I will of course do my best to finish my current projects before my departure.