The condensation of 3-(methylmercapto)propionyl chloride (I) with 4-(3-ethoxy-2 hydroxypropoxy) aniline (II) by means of triethylamine in DMF gives the corresponding amide (III), which is then treated with methyl p-toluenesulfonate (IV) in dichloromethane.