text: Unlike the reaction of amines with alcohols the reaction of amines and ammonia with alkyl halides is used for synthesis in the laboratory:
  In such reactions, which are more useful for alkyl iodides and bromides, the degree of alkylation is difficult to control such that one obtains mixtures of primary, secondary, and tertiary amines, as well as quaternary ammonium salts.
  Selectivity can be improved via the Delépine reaction, although this is rarely employed on an industrial scale.  Selectivity is also assured in the Gabriel synthesis, which involves organohalide reacting with potassium phthalimide.
  Aryl halides are much less reactive toward amines and for that reason are more controllable.  A popular way to prepare aryl amines is the Buchwald-Hartwig reaction.