I'm trying to set up the email to send ones through my site, but when I go to Settings/Email to check if all is well implemented I get the following message: ¨SMTP Error: Could not connect to SMTP host¨. At first, I thought the data of the host could be wrong, but I used an online tool (https://www.smtper.net/) to verify it and all the values are right.
Where is the mistake?
Code
- define('PERCH_EMAIL_FROM', 'mymail@mail.com');
- define('PERCH_EMAIL_FROM_NAME', 'Aleix');
- define('PERCH_EMAIL_METHOD', 'smtp');
- define('PERCH_EMAIL_HOST', 'smtp.mydomain.com');
- define('PERCH_EMAIL_AUTH', true);
- define('PERCH_EMAIL_SECURE', '');
- define('PERCH_EMAIL_PORT', 25);
- define('PERCH_EMAIL_USERNAME', 'mymail@mail.com');
- define('PERCH_EMAIL_PASSWORD', 'MyPwd1234');