An electronic device for producing an aerosol for inhalation by a person includes a mouthpiece located at one of opposite longitudinal ends of the device; a liquid container; a transducer that, when actuated, causes a liquid from the container to be aerosolized such that the aerosol may be inhaled from the device by a person through the mouthpiece; and circuitry and a power supply for actuating the transducer. The mouthpiece, the container, and the transducer are located in-line along a longitudinal axis of a housing of the device extending between the opposite longitudinal ends of the device. The container is located between and separates the transducer and the mouthpiece. The container and the transducer are contained within a cartridge that is insertable into and removable from the housing of the device. The container and the transducer are replaceable by the person when the liquid in the container is depleted.