new Dsn('ses+https', 'example.com', self::USER, self::PASSWORD, 8080,
['session_token' => 'se$sion'
]),
new SesHttpAsyncAwsTransport(new SesClient(Configuration::
create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1', 'endpoint' => 'https://example.com:8080', 'sessionToken' => 'se$sion'
]), null,
$client,
$logger), null,
$logger),
];
yield [ new Dsn('ses+https', 'default', self::USER, self::PASSWORD, null,
['region' => 'eu-west-2', 'session_token' => 'se$sion'
]),
new SesHttpAsyncAwsTransport(new SesClient(Configuration::
create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-2', 'sessionToken' => 'se$sion'
]), null,
$client,
$logger), null,
$logger),
];
yield [ new Dsn('ses+smtp', 'default', self::USER, self::PASSWORD
),
new SesSmtpTransport(self::USER, self::PASSWORD, null, null,
$logger),
];
yield [ new Dsn('ses+smtp', 'default', self::USER, self::PASSWORD, null,
['region' => 'eu-west-1'
]),
new SesSmtpTransport(self::USER, self::PASSWORD, 'eu-west-1', null,
$logger),
];
yield [ new Dsn('ses+smtps', 'default', self::USER, self::PASSWORD, null,
['region' => 'eu-west-1'
]),
new SesSmtpTransport(self::USER, self::PASSWORD, 'eu-west-1', null,
$logger),
];