Pump? Or try my best???

Al

So my little girl hasn't been able to latch at all. We tried a nipple shield in the hospital and that was great for awhile until we switched to bottle feeding (formula) she has a cold and I'm still producing milk. Since she can't latch without a shield how can I make her better with my milk? Can I get her just put her mouth on it and then pump the milk? I heard the only way to get the antibodies to make her better is by nipple attachment only...