When you decide to quit a job, most companies require you to submit an official letter of resignation ... t have time to draft a formal letter – sending a two-weeks' notice email may be appropriate.
Instead, you may want to write a resignation letter ... My final day will be (two weeks from the date of letter above). I have thoroughly enjoyed working with (Company Name).