Stand within 4 blocks of a furnace, blast furnace or smoker that is smelting something and low on fuel, and fuel is moved from your inventory into it automatically.
You still pay for the fuel. The cheapest fuel you carry is used first.