can a ring homomorphism map an integral domain to a non integral domain? i understand that if two rings are isomorphic, and one ring is an integral domain, so must the other be.
however, consider two rings, both commutative rings with unity.  is it possible that one ring contains zero divisors and one does not while there exists an ring homomorphism between the two?
there could not be a isomorphism between the two rings because there would be no one to one or onto mapping between the two rings. but could there be an operation preserving mapping between an integral domain and a commutative ring with unity and with zero divisors? 
clearly if such a mapping did exists it would not seem to be one to one or onto, but does this rule out the potential of a homomorphism existing between the two?

The quotient map $f: \mathbb{Z} \to \mathbb{Z}/(4)$ maps an integral domain $\mathbb{Z}$ to a ring with a (nilpotent) zerodivisor $\mathbb{Z}/(4)$. Now, the quotient map $g: \mathbb{Z}/(4) \to (\mathbb{Z}/(4))/(2) = \mathbb{Z}/(2)$ maps this ring to the field $\mathbb{Z}/(2)$.
