Hi XXX, I am willing to write you a recommendation but, unfortunately, I cannot write a real strong letter since I will not be able to comment on much more than the fact that you were a student in my class and how well you did in class. Only when I have worked with a student closely or got to know them from some way can I write a strong letter. Let me know.