Send them a written resignation letter with Registered Post and when some one accepts from the company he gets an acknowledgment.