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),
];
yield [ new Dsn('sendgrid+smtp', 'default', self::USER
),
new SendgridSmtpTransport(self::USER, null,
$logger),
];
yield [ new Dsn('sendgrid+smtps', 'default', self::USER
),
new SendgridSmtpTransport(self::USER, null,
$logger),
];
}