Rework how we call local sendmail to allow for testing