The coffee machine comprises: a water tank (11); at least one first pump (17); at least one first boiler (31) for heating the water; a coffee brewing unit (25); and circuits to feed hot water and/or steam, with a first outlet (43) for hot water or steam towards an emulsifying device which can be connected to a connection joint (35) of the coffee machine; a second outlet for hot water and/or wash water.