Using a stub transport to prevent sendmail from being called during a test.
merged test