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