$transport =
new EsmtpTransport('example.com', 465, true, null,
$logger);
$transport->
setMaxPerSecond(2.0
);
yield [ new Dsn('smtps', 'example.com', '', '', 465,
['max_per_second' => '2'
]),
$transport,
];
$transport =
new EsmtpTransport('example.com', 465, true, null,
$logger);
$transport->
setRestartThreshold(10, 1
);
yield [ new Dsn('smtps', 'example.com', '', '', 465,
['restart_threshold' => '10', 'restart_threshold_sleep' => '1'
]),
$transport,
];
$transport =
new EsmtpTransport('example.com', 465, true, null,
$logger);
$transport->
setPingThreshold(10
);
yield [ new Dsn('smtps', 'example.com', '', '', 465,
['ping_threshold' => '10'
]),