Just idea
Timeout errors can be caused by SSL. Can you test it in 3.4.2 with the beforeSend
option as follows? I solved it before by disabling SSL verifying to an email server I couldn’t connect to.
$kirby->email([
'from' => 'no-reply@supercompany.com',
'to' => 'someone@gmail.com',
'subject' => 'Thank you for your contact request',
'body' => 'We will never reply',
'transport' => [
'type' => 'smtp',
'host' => 'mail.getkirby.com',
'port' => 465,
'security' => true,
'auth' => true,
'username' => 'test@test.com',
'password' => 'randomString',
],
// new feature that you can try with copy paste here
'beforeSend' =>function ($mailer) {
$mailer->SMTPOptions = [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
];
return $mailer;
}
]);