Erwin71 Posted November 6, 2014 Share Posted November 6, 2014 Is it possible to let the cron running but not sending out invoices. I want to send them by hand and check them for the time being. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted November 6, 2014 Share Posted November 6, 2014 use can use action hook to abort sending invoice emails, <?php function hook_abortInvoiceEmails($vars){ if ($vars['messagename']=="Invoice Created"){ return array('abortsend' => true); } } add_hook("EmailPreSend", 1, "hook_abortInvoiceEmails"); ?> you need to create php file in "WHMCS/includes/hooks/" directory and put the code above in, this will prevent invoice created email from being sent. for more info: http://docs.whmcs.com/Hooks http://docs.whmcs.com/Hooks:EmailPreSend 1 Quote Link to comment Share on other sites More sharing options...
Erwin71 Posted November 6, 2014 Author Share Posted November 6, 2014 Thanx! Lets try this. 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.