I fostered a 25 year old underweight mare before, and I was told to feed her "Fat and Fiber" grain that you could get at TSC. I worked pretty well.
I have never tried this but I heard that you should mix half a cup of vegtable oil in to their feed. Also beet pulp is good for putting weight on horses.
Glad she got out of there.