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.

Share this post

Link to post
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.

Share this post

Link to post
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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

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