On the Problem of Nonisothermal Mass Transfer in Porous Media