bugfix in mailer
Fixes #4