-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMTP connect() failed when sending to #2881
Comments
PHPMailer doesn't read global constants, so I have no idea what your code is doing. You also asked for troubleshooting advice while including a link that refers you to the troubleshooting guide which provides exactly that, so I suggest you go read that, and next time please read the issue template instead of just ignoring and deleting it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a problem. I added the following lines to the config.php and config_extend file:
define('PHPMAILERHOST','smtp.nameserver.com:587');
define('PHPMAILER_SMTPUSER','');
define('PHPMAILER_SMTPPASS','');
define('PHPMAILERPORT', 587);
define('PHPMAILER_SECURE', 'tls');
define('POP_BEFORE_SMTP', false);
**define('PHPMAILERTESTHOST','testsmtp.nameserver.com');
define('PHPMAILERBLASTHOST','nameserver.com');
define('PHPMAILERBLASTPORT',25);
define('SMTP_TIMEOUT',5);
define('POPBEFORESMTP_DEBUG',false);**
But I still see SMTP errors in the event log. Can you please help me troubleshoot this issue?
SMTP connect() failed when sending to [Please refer to https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting for assistance.
The text was updated successfully, but these errors were encountered: