catding Posted September 23, 2011 Share Posted September 23, 2011 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? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted September 23, 2011 WHMCS Support Manager Share Posted September 23, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
catding Posted September 24, 2011 Author Share Posted September 24, 2011 Is there any error log where we can get the exact mail() problem? 0 Quote Link to comment Share on other sites More sharing options...
catding Posted September 24, 2011 Author Share Posted September 24, 2011 and when execute cron.php or pop.php like this: /usr/bin/php /home/wwwroot/vpntech.info/member/admin/cron.php there is an error: sh: -t: command not found How to fix it? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.