From Pope Pius XII’s encyclical Mystici Corporis Christi (1943):
For the social needs of the Church Christ has provided in a particular way by the institution of two other Sacraments. Through Matrimony, in which the contracting parties are ministers of grace to each other, provision is made for the external and duly regulated increase of Christian society, and, what is of greater importance, for the correct religious education of the children, without which this Mystical Body would be in grave danger. Through Holy Orders men are set aside and consecrated to God, to offer the Sacrifice of the Eucharistic Victim, to nourish the flock of the faithful with the Bread of Angels and the food of doctrine, to guide them in the way of God’s commandments and counsels and to strengthen them with all other supernatural helps.
In this connection it must be borne in mind that, as God at the beginning of time endowed man’s body with most ample power to subject all creatures to himself, and to increase and multiply and fill the earth, so at the beginning of the Christian era, He supplied the Church with the means necessary to overcome the countless dangers and to fill not only the whole world but the realms of heaven as well.
Actually only those are to be included as members of the Church who have been baptized and profess the true faith, and who have not been so unfortunate as to separate themselves from the unity of the Body, or been excluded by legitimate authority for grave faults committed. “For in one spirit” says the Apostle, “were we all baptized into one Body, whether Jews or Gentiles, whether bond or free.”17 As therefore in the true Christian community there is only one Body, one Spirit, one Lord, and one Baptism, so there can be only one faith.18 And therefore, if a man refuse to hear the Church, let him be considered—so the Lord commands—as a heathen and a publican.19 It follows that those who are divided in faith or government cannot be living in the unity of such a Body, nor can they be living the life of its one Divine Spirit.
17 I Cor., XII, 13.
18 Cf. Eph., IV, 5.
19 Cf. Matth., XVIII, 17.
— Mystici Corporis Christi 20-22