mgaccess Posted August 15, 2011 Share Posted August 15, 2011 Hi, does anyone know who wrote this add-on or could help me with this? The mod is working, but for instance after sending the "15 day" email, it will continuously send the 15 day email on day 16, 17, 18, etc. Is that how it is designed? I have this in my test environment at the moment so I can try any suggestions. I assume each email should be sent ONCE based on product registration date? I was hoping to send a email on day 2, 15, 25, and 30 after registration. Here is an excerpt of my code edits for the product I am testing. /* * Duplicate the free trials array for each trial product you want to offer */ $freetrials[0] = array( "pid" => "1", // product id "warndays1" => "2", // how many days before sending first warning "warndays2" => "15", // how many days before sending second warning "warndays3" => "25", // how many days before sending third warning "suspenddays" => "30", // how many days before suspending "terminatedays" => "60", // how many days before terminating "warn1" => "Personal Rep Welcome", // email template to send for first warning "warn2" => "30 Day Trial Ending 15", // email template to send for second warning "warn3" => "30 Day Trial Ending 25", // email template to send for third warning "suspend" => "30 Day Trial Ended", // email template to send when the trial period ends "terminate" => "Trial Account Deleted" // email template to send when customers data is deleted 0 Quote Link to comment Share on other sites More sharing options...
ExsysHost Posted August 18, 2011 Share Posted August 18, 2011 Fix was posted in the support thread for this mod: http://forum.whmcs.com/showpost.php?p=190371&postcount=29 0 Quote Link to comment Share on other sites More sharing options...
mgaccess Posted August 18, 2011 Author Share Posted August 18, 2011 Yes just delete the lines: elseif ($regdate = $warndays2) { sendMessage("$warn2",$id); }elseif ($regdate = $warndays1) { sendMessage("$warn1",$id); } So if I delete lines 294-299 in the original file that will stop the emails from being sent everyday until the next warnday? then set the warn days 3 line in the configuration portion. No idea what you mean here. 0 Quote Link to comment Share on other sites More sharing options...
mgaccess Posted August 18, 2011 Author Share Posted August 18, 2011 That doesn't fix the problem, but only removes a couple of the emails that are sent. The problem I am having is what is described in this post. http://forum.whmcs.com/showpost.php?p=195495&postcount=41 I will test the "fix" jeremyhaber posted. Anyone tried 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.