new Dsn('ohmysmtp+smtp', 'example.com'
),
true,
];
} public static function createProvider(): iterable
{ $logger =
new NullLogger();
yield [ new Dsn('ohmysmtp+api', 'default', self::USER
),
new OhMySmtpApiTransport(self::USER,
new MockHttpClient(), null,
$logger),
];
yield [ new Dsn('ohmysmtp+api', 'example.com', self::USER, '', 8080
),
(new OhMySmtpApiTransport(self::USER,
new MockHttpClient(), null,
$logger))->
setHost('example.com'
)->
setPort(8080
),
];
yield [ new Dsn('ohmysmtp', 'default', self::USER
),
new OhMySmtpSmtpTransport(self::USER, null,
$logger),
];