Hi all, I’m trying to set a form through this recipe.
When I tried to submit the form, the web page just loaded and then after several seconds this message appeared:
“The form could not be sent: SMTP Error: Could not connect to SMTP host.”
Is it an issue with client email provider? Is there any permission or setting that I need to specify?
Here’s the code:
/config.php
return [
'email' => [
'transport' => [
'type' => 'smtp',
'host' => 'host',
'port' => 465,
'security' => true,
'auth' => true,
'username' => 'email',
'password' => 'pwd',
]
],
And I am pretty sure to have set the controller.php correctly because everything works with my Gmail account.