Jump to content
ShimonBalkay

SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Recommended Posts

Hello,

I have tried adding my 2 SMTPs (SendGrid and Gsuite) both of them didn't work. With various ports and all, I contacted their support and also my hosting providor, they all said everything looks fine.

I am guessing its issue from WHMCS side. Can you guys tell me how to fix this error please?

SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

 

 

Share this post


Link to post
Share on other sites

Hello @ShimonBalkay,

Thank you for your post on the WHMCS.Community.

Could you please try adding the following line to your configuration.php file then try sending and email and reviewing the output for any error messages:

$smtp_debug = true;

 

Share this post


Link to post
Share on other sites

Hello 

I do this in configrution file:   $smtp_debug = true;

 

But my issue not solved till now.

After updating I got this error at the time of sending the mail to the customer:

 

2020-01-16 18:07:13 SMTP ERROR: Failed to connect to server: Connection refused (111)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

 

Please help me out how to solve this issue permanently?

Share this post


Link to post
Share on other sites
On 1/16/2020 at 12:13 PM, Ashish Garg said:

Hello 

I do this in configrution file:   $smtp_debug = true;

 

But my issue not solved till now.

After updating I got this error at the time of sending the mail to the customer:

 

2020-01-16 18:07:13 SMTP ERROR: Failed to connect to server: Connection refused (111)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

 

Please help me out how to solve this issue permanently?

What was the resolution for this?! I'd love to get my setup going this weekend!

Share this post


Link to post
Share on other sites

Also i have the same issue is there any ideas regarding how to trace and find out how can solve this issue

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated