mock out the Zend_Mail_Transport object in unit tests (fixes #3466, BP from #3443)

mock out the Zend_Mail_Transport object in unit tests (fixes #3466, BP from #3443)

(cherry picked from commit 2d73654a5ed2755c2cfe52a8be9e10e49e95eb1a)