Debug mode that logs but doesn't send emails?

Is it possible to configure mailer to only "pretend" that the mail is sent? TransportStrategy.VOID for example?

Could be rather useful for testing, to not need a smtp server running somewhere.