An electrochemical cinnamyl C—Hamination reaction in the absence of transition metal catalyst and oxidant was reported. The choice of carbonyl sulfamate as nitrogen source is the key to achieve desired chemoselectivity. A series of terminal amine derivatives are prepared using this protocol and the sulfonyl group can be removed with basic hydrolysis. The reaction is suggested to proceed via a continuous