$transport =
new EsmtpTransport('example.com', 465, true, null,
$logger);
yield [ new Dsn('smtps', 'example.com', '', '', 465
),
$transport,
];
$transport =
new EsmtpTransport('example.com', 465, true, null,
$logger);
/** @var SocketStream $stream */
$stream =
$transport->
getStream();
$streamOptions =
$stream->
getStreamOptions();
$streamOptions['ssl'
]['verify_peer'
] = false;
$streamOptions['ssl'
]['verify_peer_name'
] = false;
$stream->
setStreamOptions($streamOptions);
yield [ new Dsn('smtps', 'example.com', '', '', 465,
['verify_peer' => false
]),
$transport,
];
yield [ new Dsn('smtps', 'example.com', '', '', 465,
['verify_peer' => 'false'
]),