protected function createSparkPostTransport(array $config): SparkPostTransport
    {
        return new SparkPostTransport(
            $this->getHttpClient($config),
            $config['secret'],
            $config['options'] ?? [],
            $config['endpoint'] ?? null
        );
    }