first rewrite
Simplified configuration + added test
Tests for MailComposerFactory