public static function getMessage(ConfigObject $config)
    {
        $message = new Message($config);

        if ($config->get('Sender', false)) {
            $sender = new Email($config->get('Sender.Email', 'me@localhost'), $config->get('Sender.Name', null));
            $message->setSender($sender);

            // Fix/Hack (wasn't in headers before)
            $message->setFrom($sender);
        }

        return $message;
    }