I think attribute is too formal in a letter of thanks. For example,
I attribute my quick recovery to your care.
How to correct it?
I owe my quick recovery to your care. (Not exactly the same, but probably close enough) I believe your care is responsible for my quick recovery.
You could use 'attribute'. It's the thought that counts in this sort of thing.