The main way to get mash on Howrse is to buy it, though occasionally a bag of it will drift across your screen—click it and it's yours for free, whatever the type.
To feed it, click "Feed," then choose "Mash," and select whichever mash you'd like to give your horse.