src/Services/Ses.php
public static function getTransport($key, $secret, $region)
    {
        if (empty($key) || empty($secret) || empty($region)) {
            throw new InternalServerErrorException('Missing one or more configuration for SES service.');
        }

        $config = [
            'key'     => $key,
            'secret'  => $secret,
            'region'  => $region,
            'version' => 'latest',
            'service' => 'email'
        ];

        if ($config['key'] && $config['secret']) {
            $config['credentials'] = Arr::only($config, ['key', 'secret']);
        }

        return new SesTransport(new SesClient($config));
    }
public static function getTransport($key, $secret, $region)
    {
        if (empty($key) || empty($secret) || empty($region)) {
            throw new InternalServerErrorException('Missing one or more configuration for SES service.');
        }

        $config = [
            'key'     => $key,
            'secret'  => $secret,
            'region'  => $region,
            'version' => 'latest',
            'service' => 'email'
        ];

        if ($config['key'] && $config['secret']) {
            $config['credentials'] = Arr::only($config, ['key', 'secret']);
        }

        return new SesTransport(new SesClient($config));
    }
@param $key
@param $secret
@param $region

@return \Illuminate\Mail\Transport\SesTransport
@throws \DreamFactory\Core\Exceptions\InternalServerErrorException