CIC
Canon 945
Book IV. The sanctifying function of the Church
Sacraments
Code of Canon Law
English§1. In accord with the approved practice of the Church, any priest celebrating or concelebrating is permitted to receive an offering to apply the Mass for a specific intention.
§2. It is recommended earnestly to priests that they celebrate Mass for the intention of the Christian faithful, especially the needy, even if they have not received an offering.