An exhaust aftertreatment system, including injection of chemical species, has a mixer in the exhaust pipe between the injector and the aftertreatment element. The mixer is provided by a stamped muffler flange.