$logger =
new NullLogger();
$transport =
new EsmtpTransport('localhost', 25, false, null,
$logger);
yield [ new Dsn('smtp', 'localhost'
),
$transport,
];
$transport =
new EsmtpTransport('example.com', 99, true, null,
$logger);
$transport->
setUsername(self::USER
);
$transport->
setPassword(self::PASSWORD
);
yield [ new Dsn('smtps', 'example.com', self::USER, self::PASSWORD, 99
),
$transport,
];
$transport =
new EsmtpTransport('example.com', 465, true, null,
$logger);
yield [ new Dsn('smtps', 'example.com'
),