There is a lot on the web, but i didn’t solve it yet.
I am using laminas mail with an SMTP connection to send mail, this works fine on production server, but for testing purposed i also want to use it on my developmentserver. For some reason it does not work there, with the same settings (see below)
$options = new SmtpOptions(array(
'name' => 'maintenanceplus.nl',
'host' => 'mail.antagonist.nl',
'port' => 587,
'connection_class' => 'login',
'connection_config' => array(
'username' => '****',
'password' => '****',
'ssl' => 'tls'
),
));
I am using Apache2 with PHP8.2 on a windows machine.