Dear Mr/Ms (name),
I request you to kindly accept this letter as a formal notification that I am leaving my position as (mention designation) with (name of company) on (mention date of resignation). Please take this date as the start of my two-month notice period, which will end on (mention date). I will not serve the last month and wish to forfeit my 30-day earn leave in lieu of that. I have discussed the related matters with the human resource department and have completed the necessary procedures.
I would like to thank you for the opportunities that you provided me during my time with this company. I would especially like to thank (mention name) who has been a constant support and guided me in my work. I am giving my contact details below, so if I can be of any assistance during this transition, please let me know.