In fact, this "smell" (fragrance) is just a nerve stimulus, not a physical substance.
But it's the chemicals that cause the stimulation.
Take a flower as an example, because it is a complex organism. If you smell it, it may just be that its secretions have evaporated. It can't be said that "flowers" are volatile.
But if it is a bottle of vinegar, you can smell it. That's because acetic acid molecules volatilize into the air and you inhale. This is called "acetic acid" transfer. It is worth noting that vinegar is "a mixture of acetic acid, water and other chemicals". Can't say "vinegar" transfer, can only say "acetic acid" transfer. More and more details are not convenient to say.