Control whether mail is actually sent

Extra parameter to constructor which controls whether mail is actually
sent - defaults to false which just fakes an email (creates log entries
etc.) without actually sending it.