An inhaler includes a medicine cartridge having at least an ejection head and a first electrical connection section for supplying the ejection head with electric power necessary for ejecting medicine, an inhaler body having a medicine cartridge mounting section and an inhalation piece. The inhaler is so constructed that an electric circuit for supplying the ejection head with electric power necessary for ejecting medicine by way of the first electrical connection section is made operable by mounting and rigidly securing the inhalation piece onto the inhaler body. The inhaler can be operated by a user with ease and the ejection head is reliably electrically energized only when the inhaler is operated.