Skip to main content

Wordpress toolkit php mailer error

Comments

6 comments

  • cPanelAnthony
    Hello! The following article should help.
    0
  • Petar
    Thank you @cPanelAnthony but that is not possible because users manage own installation. No other options?
    0
  • cPanelAnthony
    Thank you @cPanelAnthony but that is not possible because users manage own installation. No other options?

    The only other option at this time would be setting the domain to PHP 7.4 temporarily.
    0
  • Petar
    But that also is not option because all PHP version on server have disabled mail() function.
    0
  • ServerHealers
    The PHP 7.4 should work fine even if the mail function is disabled, since this issue is only with the PHP 8 at this stage. It has been verified that this is due to a change in the way PHP 8 handles 'disable_functions'. Prior versions of PHP would throw a warning when a disabled function was attempting to be used. In PHP 8 and later, attempting to use a disabled function will throw a standard error for an undeclared function with "Fatal error".
    0
  • rbairwell
    I guess (and baring in mind it is 3.30am for me at the moment) if you use the PHP auto_prepend_file setting in php ini to load in a file which has a dummy function mail(...
    then the problem might be reduced (you could also make the function call PHPMailer).
    0

Please sign in to leave a comment.