Prepare for It. In this case, all you can do is politely deliver your resignation, then strive to make the transition as easy as possible for your team. Your manager may not have the ideal reaction to your news__and your workplace may not be the most pleasant environment for the next two weeks__but to avoid burning bridges, it's best to work through it with a positive attitude.
What Else Should I Do When Resigning? First, out of respect and common courtesy, you would ideally tell your manager in person that you are resigning. If you can't wait for that or work remotely or some other complication prevents that, the telephone is the next best option. You can choose to follow up or accompany that discussion with a formal letter of resignation afterwards, but it would be a rare workplace that would require that formality.