Jump to content

Unable to load mail module: PhpMail

Recommended Posts

I just had my WHMCS upgraded to v8.4 and I'm having some issues with phpMail at the least.

First, /admin/configgeneral.php isn't fully loading. There's no styling to the page, and it stops loading just after the Mail Provider label. Then, I see this:

Something went wrong and we couldn't process your request.
Please go back to the previous page and try again.

Error: Unable to load mail module: PhpMail

The only console error I see is:

configgeneral.php:123 Uncaught ReferenceError: jQuery is not defined
    at configgeneral.php:123:17
(anonymous) @ configgeneral.php:123

Of course, all outgoing emails are failing but  I'm unable to change the mail method because general settings page won't load. I attempted to do it through the database but wasn't 100% sure where to do that. I'm in `tblconfiguration` in the 'MailType' setting. Currently it says "mail".  If that's the correct row, what do I change it to? 

Any help with the email portion would be greatly appreciated. I have a ticket in to the WHMCS upgrade team but it could be a while. :)




Link to comment
Share on other sites

  • 1 year later...

Additionally on checking the logs

I see the followings


Unable to load mail module: MicrosoftGraph


#0 domain/admin/configgeneral.php(0): WHMCS\Module\Mail::factory()
#1 {main}

now here there is another issue that when checking these files they are encrypted hence there is no way around to check the error logs findings. 



Link to comment
Share on other sites


I am currently experiencing the same issue. When I try to access the general configuration, I encounter the error "Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again.

Error: Unable to load mail module: PhpMail/ SendGrid".

I have even deleted the data from the 'tblconfiguration' table and left the 'MailConfig' value empty.



Link to comment
Share on other sites

23 hours ago, anvargear said:

I solved it by installing whmcs 8.8 and then copying my modules and configurations made manually.

With this I no longer have the problem, apparently the error occurs when the whmcs is updated

Thats the simplest and easiest method to solve it, starting from scratch. 

But that is not the solution for people who have massive clients and database.

We need a permanent resolution for it as the mailing has to be working for the sending clients updates on all sort of updates, 

what if the problem starts again after the new installation and we configure the mails again?

Link to comment
Share on other sites

It's true, I only have one portal with approximately 1500 active clients.

The easiest thing I found was to perform that process, as I was unable to send emails since I upgraded to WHMCS 8.8.x.

Although the solution wasn't traumatic, because it was just installing WHMCS, updating the config.php with the production database, and copying the folders of the modules and modifications made, that's it.

It was almost a one-day issue, but it should be a transparent process in the upgrade.

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.

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