The reaction of esterification of benzoic acid with benzyl chloride was chosen as a model reaction to study the esterification by S(N)2 promoted by tertiary amine as deprotonating agent. The use of ionic liquid (IL) 1,3-dimethylimidazolium methanesulfonate [MMIm][OMs] as reaction medium has proven to give quantitative yield of the ester, but interestingly the reaction does occur even in solvent-free conditions, where the acid + the amine form a liquid system (a protic IL) in situ. This last methodology was extended to several carboxylic acids in conditions of atom economy (i.e., without excess of any reagent), giving moderately good yields of esters (54-78%) recovered by weight in pure form.