Array
(
    [0] => Warning
    [1] => Undefined array key "language"
    [2] => /home/whmcsdev/public_repo/wbteampro.major-release/installation/modules/addons/wbteampro/initialize.php
    [3] => 282
)
Array
(
    [0] => Warning
    [1] => Undefined property: stdClass::$state
    [2] => /home/whmcsdev/public_repo/wbavatax.master/installation/modules/addons/wbavatax/hooks.php
    [3] => 942
)
Array
(
    [0] => Deprecated
    [1] => htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
    [2] => /home/whmcsdev/public_repo/wbavatax.master/installation/modules/addons/wbavatax/hooks.php
    [3] => 279
)
Resolve the "Could not instantiate mail function." mail error in WHMCS. - Knowledgebase - WHMCS Dev
Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

Resolve the "Could not instantiate mail function." mail error in WHMCS. Print

  • 1

When attempting to send mail you may receive an error "Could not instantiate mail function."  This error is the result of the server failing to process a PHP Mail() function request, which can be caused by several things, one of which being an invalid sender.  If you are receiving this error, first try setting the "System Emails From Email" under General Settings > Mail tab to a valid email address.  If this does not work, the next option will be to try using the SMTP option for "Mail Type" on the same General Settings >  Mail tab.  When using SMTP you will need to provide a valid SMTP Host, Username, and Password which can all be obtained from your email hosting provider.

Was this answer helpful?

« Back

Powered by WHMCompleteSolution