I was absent from *** through/to *** because of a severe headache. I went to the doctor, and he told me to wear spectacles/glasses; only then would the pain decrease. So I ordered spectacles/glasses from an optical shop, and they told me to come and get my glasses 3 days later. I had continuous headaches during those 3 days, that's why I was absent from college. Now I'm perfectly all right, and I can attend classes regularly. I hope you won't take any severe action against me.
Maybe natives will correct your text a bit more