Issue #472 Allow SendMail override for test