Catalysis of the reaction: S-adenosyl-L-methionine + an amine = S-adenosyl-L-homocysteine + a methylated amine. Acts on primary, secondary and tertiary amines.
S-adenosyl-L-methionine:amine N-methyltransferase activity