An ultrasonic nebulizer comprising a housing, said housing being divided into at least two compartments by a membrane, said membrane comprising a flexible film, such that at least one compartment is liquid and vapor tight, said nebulizer further comprising a built-in heating means and at least one piezoelectric vibrating cell for ultrasonic wave generation located in said liquid and vapor tight compartment and encapsulated by a liquid or gel protective medium, a high-frequency generator for exciting said at least one piezoelectric vibrating cell, wherein said liquid or gel medium is heated by said built-in heating means to a temperature of at least 30° C.