Among other things, a system and a method are provided for generating space-filling foam for treating vulvodynia with medication compounded of multiple reactants; the system comprises an aerosol surmounted on a vulva-enclosing container configured to seal the vulva; the actuator on the aerosol operates a one-way valve to dispense said space-filling foam; and the method includes the following steps: selecting the vulvar cap delivery dispenser, affixing the dispenser over the vulva, depressing the pressure-sensitive switch operating the valve to deliver the appropriate quantity of medication in a space-filling foam, removing the delivery dispenser, and cleansing the dispenser; repeating the procedure according to a treatment regimen.