Stinkhorns disperse their spores by attracting flies by smell, having them land in a gooey layer holding the spores, then making sure that some of this layer is sticking to them when they take off again.
The smell, strong when the fungi are fresh, is usually described as resembling rotting flesh. To me, there is an additional overtone of having passed through the digestive system of a dog.
The fly here is on the stem of the fungus, not the tip where the spores had been.