The best way is to drop a resignation letter and by being polite instead of being rudeIt is indeed that it is fine to say the reason to the manager directly and seriously. Although it is best to submit a formal resignation letter. It is the best way to document things up when quiting a job.