new Dsn('mailgun+api', 'default', self::USER, self::PASSWORD, null,
['region' => 'eu'
]),
new MailgunApiTransport(self::USER, self::PASSWORD, 'eu',
$client, null,
$logger),
];
yield [ new Dsn('mailgun+api', 'example.com', self::USER, self::PASSWORD, 8080
),
(new MailgunApiTransport(self::USER, self::PASSWORD, null,
$client, null,
$logger))->
setHost('example.com'
)->
setPort(8080
),
];
yield [ new Dsn('mailgun', 'default', self::USER, self::PASSWORD
),
new MailgunHttpTransport(self::USER, self::PASSWORD, null,
$client, null,
$logger),
];
yield [ new Dsn('mailgun+https', 'default', self::USER, self::PASSWORD
),
new MailgunHttpTransport(self::USER, self::PASSWORD, null,
$client, null,
$logger),
];
yield [ new Dsn('mailgun+https', 'example.com', self::USER, self::PASSWORD, 8080
),
(new MailgunHttpTransport(self::USER, self::PASSWORD, null,
$client, null,
$logger))->
setHost('example.com'
)->
setPort(8080
),
];