The present invention proposes a vaporizer (21) for an aerosol- generating system. The vaporizer comprises a tube element (22), a mesh (25), and a heater (26). The tube element has an inner volume (23) for receiving an amount of liquid aerosol-forming substrate. The mesh is provided in the inner volume of the tube element. The heater is provided outside of the tube element. The heater is configured for heating the mesh and the received amount of liquid aerosol-forming substrate to a temperature sufficient to volatilize at least a part of the received amount of liquid aerosol-forming substrate. The present invention also proposes a method for generating an aerosol.