If the topology on $X$ is metrizable, i.e. it comes from a metric $\mathrm{d}: X \times X \to \mathbb{R}$, then $X$ will be Hausdorff because every two different points $x,y \in X$ can be separated by open balls of radius less than $\frac{\mathrm{d}(x,y)}{2}$.
If Hausdorffness is not preserved under continuous functions, as it has been shown by others, then metrizability will not be preserved either.
The counter-examples will be similar.
Let $\mathrm{id}: (\mathbb{R}, \mathrm{Euclidean}) \to (\mathbb{R},\{0,\mathbb{R}\})$ be the identity function on the real numbers with the Euclidean topology (coming from the Euclidean metric) in the domain and the trivial topology in the co-domain. The domain is of course metrizable, the function is continuous because the pre-images of $\emptyset$ and $\mathbb{R}$ are open in the domain, but $\mathbb{R}$ with the trivial topology is not Hausdorff (it just doesn't have enough open sets for being Hausdorff. You can't separate $0$ from $1$ in the trivial topology!) and therefore, it is not metrizable.