public function setSmtpConfig($swiftSmtpTransport, $attributes)
    {
        foreach ($attributes as $key => $value) {
            $method = 'set'.ucfirst($key);
            $swiftSmtpTransport->{$method}($value);
        }
    }