I regret to inform you that I would like to resign my post of xxx. I hereby give 1-month notice of my intention to leave ABC Company with effect from (next day of last date).
Thank you for giving me a chance to learn and to gain the valuable experience in ABC Company. I hope my resignation would not cause you much inconvenience.
Thank you for your kind attention and would appreciate if you could let me have a reference letter before I leave.