On the heat and mass transfer from an ascending magma