An aerosol-generating system comprises an aerosol-generating article (2) and an aerosol-generating device (4). The aerosol-generating article (2) comprises: a first compartment (6) comprising a first one of a volatile delivery enhancing compound source and a medicament source; and a second compartment (8) comprising a second one of the volatile delivery enhancing compound source and the medicament source. The aerosol-generating device (4) comprises: a cavity configured to receive the first compartment (6) and the second compartment (8) of the aerosol-generating article (2); and an external heater (16, 16a, 16b) positioned about a perimeter of the cavity. The aerosol-generating device (4) is configured to heat the first compartment (6) and the second compartment (8) of the aerosol-generating article (2) so that first compartment (6) of the aerosol-generating article (2) has a lower temperature than the second compartment (8) of the aerosol-generating article (2).