If you need to accept someone’s resignation you can send an email or letter in return accepting their resignation, expressing regret since they have decided to leave, appreciate their time working for the company, respect and understand their personal situation and mention you have received their letter and that you accept their resignation.