Add smtpStub for debugging emails

This is enabled when smtp isn't enabled.