What is the mechanism for the reaction of acetyl chloride and aniline?
The mechanism is just a regular nucleophilic attack of an amine on a carbonyl, with the triethylamine just there to pick up any loose protons at the end of the reaction.