You need to check in your employee handbook or consult with your HR department if you need to deliver the resignation letter directly to HR or your manager. Depending on internal processes and how it is already determined you will need to deliver to one of them or both.