Jump to content

Could not instantiate mail function


catding

Recommended Posts

there is some problem these days when I sending mail from whmcs, it often says"Could not instantiate mail function", and sometime there is no such problem, but there is no such problem when I was on my dedi server. I'm using postfix as the mail server.

 

 

I use WHMCS cron.php and pop.php to check emails periodly.

using croner like follows.

 

0 */12 * * * /usr/local/php/bin/php -q /home/wwwroot/vo/member/admin/cron.php

*/6 * * * * /usr/local/php/bin/php -q /home/wwwroot/vo/member/pipe/pop.php

 

but can't send email with cron.

 

I found that the pop.php and cron.php of WHMCS need some right to execute mail() under cron.

but the system don't provide such rights, so can't send email with cron.

 

does any body has similar problem?

 

how to fix it?

Link to comment
Share on other sites

  • WHMCS Support Manager

This message usually occurs when using the PHP Mailer function to send email and the script receives a failure when using the mail() function. I would advise trying to use the SMTP method in Setup -> General Settings -> Mail as the PHP Mail function cannot give more descriptive errors than this.

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