A readily automated solid-phase approach to the synthesis of diverse N-(phenylalkyl)cinnamides, analogues of the NR2B antagonist 2, is described. The procedure utilizes polymer supported N-(phenylalkyl)amines, (diethylphosphono)acetic acid and a wide range of commercially available hydroxybenzaldehydes. The key step, a Horner-Wadsworth-Emmons reaction is achieved under mild conditions and was found to be general for a large number of benzaldehydes. A 225-member focused library was synthesized using a Tecan Combitec synthesizer.