Skip to content
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

Closed
CodeBerserkers888 opened this issue Mar 8, 2023 · 1 comment
Closed

SMTP connect() failed when sending to #2881

CodeBerserkers888 opened this issue Mar 8, 2023 · 1 comment

Comments

@CodeBerserkers888
Copy link

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.

@Synchro
Copy link
Member

Synchro commented Mar 9, 2023

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.

@Synchro Synchro closed this as completed Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants