Can. 844 §1. Catholic ministers administer the sacraments licitly to Catholic members of the Christian faithful alone, who likewise receive them licitly from Catholic ministers alone, without prejudice to the prescripts of §§2, 3, and 4 of this canon, and ⇒ can. 861, §2.
§2. Whenever necessity requires it or true spiritual advantage suggests it, and provided that danger of error or of indifferentism is avoided, the Christian faithful for whom it is physically or morally impossible to approach a Catholic minister are permitted to receive the sacraments of penance, Eucharist, and anointing of the sick from non-Catholic ministers in whose Churches these sacraments are valid.
This is what Bl John Paul II had to say in Ecclesia de Mysterio
- In my Encyclical Ut Unum Sint I expressed my own appreciation of these norms, which make it possible to provide for the salvation of souls with proper discernment: “It is a source of joy to note that Catholic ministers are able, in certain particular cases, to administer the sacraments of the Eucharist, Penance and Anointing of the Sick to Christians who are not in full communion with the Catholic Church but who greatly desire to receive these sacraments, freely request them and manifest the faith which the Catholic Church professes with regard to these sacraments. Conversely, in specific cases and in particular circumstances, Catholics too can request these same sacraments from ministers of Churches in which these sacraments are valid”.97
These conditions, from which no dispensation can be given, must be carefully respected, even though they deal with specific individual cases, because the denial of one or more truths of the faith regarding these sacraments and, among these, the truth regarding the need of the ministerial priesthood for their validity, renders the person asking improperly disposed to legitimately receiving them. And the opposite is also true: Catholics may not receive communion in those communities which lack a valid sacrament of Orders.98
The faithful observance of the body of norms established in this area 99 is a manifestation and, at the same time, a guarantee of our love for Jesus Christ in the Blessed Sacrament, for our brothers and sisters of different Christian confessions – who have a right to our witness to the truth – and for the cause itself of the promotion of unity.
vatican.va/holy_father/john_paul_ii/encyclicals/documents/hf_jp-ii_enc_20030417_eccl-de-euch_en.html