Regardless of whether you loved or hated your job, your employer or the company, the outcome should be the same: a short, polite, and professional letter stating your intention to leave.
People leave their jobs for many different reasons, and it is not necessary to provide any details as to why you are leaving the company. Resignation letters are a formal courtesy to your employer.
In composing your letter, please again remember that your job history follows you around, and in many cases, the world is much smaller than we think. It is extremely unwise to leave on bad terms with any employer – mainly because doing so could come back to haunt you later in your career.
When should you submit your letter of resignation? And to whom? You should submit your resignation two or more weeks before your planned resignation date (depending on company/profession policy). And you should submit the letter/memo to your direct supervisor, with a copy to your human resources office if applicable.