leemason Posted January 23, 2012 Share Posted January 23, 2012 (edited) im working on a script which uses the clientarea output function for addon modules. accessed by: /index.php?m=modulename this script is supoosed to send an email when that url is accessed. which is working fine, i am recieving the emails. the problem is it is sending the email every minute!!!! even when the url is only accessed once??? im not sure how the output of this proccessed by whmcs so i dont know if it loops through multiple time or not. this is my function: function prefix_clientarea($vars) { //send email then display page prefix_send_notification($vars); //return the vars for setting up the clientarea page return array( 'pagetitle' => $array['LANG']['title'], 'breadcrumb' => array('index.php?m=prefix'=>$array['LANG']['title']), 'templatefile' => 'tplfile', 'requirelogin' => false, # or true 'vars' => array( 'vars' => $vars ), ); } should i be doing something different? the send_notification function just does a mail(); with the vars Edited January 23, 2012 by leemason added details 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.