The present invention relates to an auto-injector for delivering a liquid medicament, the auto-injector comprises an injector body, a syringe received in the injector body, a needle disposed in a first end of the syringe to extend toward an opening of the injector body, an injector cap to enclose the opening and cover the needle and a releasable attachment mechanism configured to secure the cap in place covering the needle. The releasable attachment mechanism comprises first and second engaging parts, wherein the first and second engaging parts cooperate in an attached position to secure the cap in position covering the needle, and wherein the attachment mechanism is configured to move into a release position in which the first and second engaging parts are in reduced cooperation when above a threshold temperature to facilitate detachment of the injector cap to expose the needle.本發明涉及一種用於輸送液體藥劑的自動注射器,該自動注射器包括:注射器主體;注射筒,其被接收在注射器主體中;針,其設置在注射筒的第一端中並且朝注射器主體的開口延伸;注射器帽蓋,其封閉該開口並且覆蓋針;和可釋放的附接機構,其構造成將帽蓋固定在覆蓋針的位置。可釋放的附接機構包括第一接合部分和第二接合部分,其中第一和第二接合部分在附接位置時配合以將帽蓋固定到覆蓋針的位置,並且其中附接機構被構造成改變為釋放位置,在該釋放位置中,第一和第二接合部在溫度高於閾值溫度時處於減弱的配合,以便於拆卸注射器帽蓋以暴露針。