public function fromStrings(array
$dsns): Transports
{ $transports =
[];
foreach ($dsns as $name =>
$dsn) { if ($name === 'main'
) { $transports[$name] =
$this->
fromString($dsn);
} else { $transports[$name] =
$this->
createTransportUsingDSN($dsn);
} } return new Transports($transports);
} public function fromString(string
$dsn): TransportInterface
{ try { $transportConfig =
trim($this->configService->
getString('core.mailerSettings.emailAgent'
));
if ($transportConfig === ''
) { return $this->
createTransportUsingDSN($dsn);
} } catch (DriverException
) {