A capsule comprising: - a casing , which comprises: a base wall , which includes an outlet opening , and a lateral wall defining a containment cavity of an initial preparation to be mixed with a fluid to obtain a food product; a flanged edge extending from the lateral wall ; - a covering element , fixed to the flanged edge in order to hermetically close the cavity , which can be perforated by a unit for injecting fluid of a dispensing machine , in which the capsule can be housed; - a closing element fixed to the base wall for hermetically closing the outlet opening when the capsule is in a non-operating configuration; - a tube (209; 229), which is fixed to the covering element and extends through the outlet opening , wherein the tube (209; 229) comprises: - a first end and a second end which are opposite to one another, wherein the first end is configured to engage with the injection unit, and wherein the second end is configured to push the closing element away from the base wall detaching it from the base wall , in such a way as to position the capsule in a dispensing configuration; the second end being positioned close to the base wall when the capsule is in the non-operating configuration and being positioned spaced from the base wall when the capsule is in the dispensing configuration; wherein the closing element is fixed in a fully detachable manner to the base wall , characterized in that the closing element is fixed in a non-detachable manner to the second end of the tube (209; 229), in such a way that in the dispensing configuration the closing element detaches completely from the base wall and is held in a non-detachable manner by the second end of the tube (209; 229). - a casing , which comprises: a base wall , which includes an outlet opening , and a lateral wall defining a containment cavity of an initial preparation to be mixed with a fluid to obtain a food product; a flanged edge extending from the lateral wall ; - a covering element , fixed to the flanged edge in order to hermetically close the cavity , which can be perforated by a unit for injecting fluid of a dispensing machine , in which the capsule can be housed; - a closing element fixed to the base wall for hermetically closing the outlet opening when the capsule is in a non-operating configuration; - a tube (209; 229), which is fixed to the covering element and extends through the outlet opening , wherein the tube (209; 229) comprises: - a first end and a second end which are opposite to one another, wherein the first end is configured to engage with the injection unit, and wherein the second end is configured to push the closing element away from the base wall detaching it from the base wall , in such a way as to position the capsule in a dispensing configuration; the second end being positioned close to the base wall when the capsule is in the non-operating configuration and being positioned spaced from the base wall when the capsule is in the dispensing configuration; wherein the closing element is fixed in a fully detachable manner to the base wall , characterized in that the closing element is fixed in a non-detachable manner to the second end of the tube (209; 229), in such a way that in the dispensing configuration the closing element detaches completely from the base wall and is held in a non-detachable manner by the second end of the tube (209; 229). <EOS>