add logging option to Mailer. closes #726

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #726
| Refs tickets  | -
| License       | MIT
| Doc PR        | -