Jump to content

Couldn't able to receive mail from WHMCS SMTP/PHPmail


Recommended Posts

Hey, I Couldn't able to receive mail from WHMCS neither SMTP nor PHPmail, first i was using phpmail it was fine i don't know what happen then it stop working and i tried gmail smtp, 3rd parties server and always fail Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (Subject: {Mail subject})

I'm using PHP 5.6 i think problem is in version of PHP let me know which package i should select for this version or i have to change version.

Let me know if you want any further information.

Link to comment
Share on other sites

Hey @arsalahmed786

Check the error logs under Utilites > Logs > Actvity log, you can also get more infor on the SMTP Error by using these steps

Sometimes the error output in the Activity Log when sending of emails via SMTP fails can lack verbosity or the underlying cause may be different from the message that is ultimately displayed. Adding the following line to the configuration.php file will output a lot of debugging information when a mail is being sent manually, provided the Setup > General Settings > Mail tab > Mail Type is SMTP:

$smtp_debug = true;


After sending an email manually, the interaction between your server and the email server will be displayed on-screen for debugging purposes. Once finished, be sure to revert the change to the configuration.php file.

Link to comment
Share on other sites

First of all thanks for the reply, i didn't added "$smtp_debug = true;" just change ports and it fine now Thanks, now i'm using port 443 for SSL

but thanks for your help, just want to know if it added "$smtp_debug = true;" on configuration.php file then it will debug the problem? or show the entire logs? just want to know if in case if i have face that problem again.

Link to comment
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