Not a general “influence”: While emotions can be contagious,
传染 is not a general-purpose word for “influence.” For a more neutral or broader sense of influence (e.g., “His teacher influenced his career choice”), the word
影响 (yǐngxiǎng) is the correct choice. Use
传染 when you want to imply a more direct, potent, and spreading effect, like a virus.