It's best to quit in person if you can do so, but you may be able to resign by phone or email. Always write a resignation letter that includes your last day of work and your thanks for the opportunity. Know that you may be asked to leave as soon as you resign; pack up your belongings and personal files before you quit.