KiX Posted January 16, 2009 Posted January 16, 2009 Hmm. Don't know if this has been done before, but here it goes. Basically, what it does is it sends an email to all users that have been inactive for 1 month. I put in my cron, so it checks after every end of day. open cron_day.php and add at the end of the file You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Obviously, you will need to change some the variable to adjust it to your site. finally the sql You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
toufail Posted January 16, 2009 Posted January 16, 2009 Re: [mccode v2.0] thanx for mod i was looking for this but i got this message when i run the cron Warning: mail() has been disabled for security reasons in cron_weekly.php on line 49 line 49 is : mail($rem1['email'],"Welcome to ".$site_name,$bericht,"From: ".$site_name." <".$site_mail.">"); Quote
POG1 Posted January 16, 2009 Posted January 16, 2009 Re: [mccode v2.0] even with like 100 members it will be very slow, not the best method to use.. Quote
KiX Posted January 16, 2009 Author Posted January 16, 2009 Re: [mccode v2.0] thanx for mod i was looking for this but i got this message when i run the cron Warning: mail() has been disabled for security reasons in cron_weekly.php on line 49 line 49 is : mail($rem1['email'],"Welcome to ".$site_name,$bericht,"From: ".$site_name." <".$site_mail.">"); i presume that must be from your host, not the code Quote
toufail Posted January 16, 2009 Posted January 16, 2009 Re: [mccode v2.0] YO POG1 can you be genrous enough and tell us the way which is faster Quote
AlabamaHit Posted January 16, 2009 Posted January 16, 2009 Re: [mccode v2.0] Timestamp? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
POG1 Posted January 16, 2009 Posted January 16, 2009 Re: [mccode v2.0] for each record that is returned the whole loop is done, try optimizing it; probably wont work but its a general idea You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
KiX Posted January 16, 2009 Author Posted January 16, 2009 Re: [mccode v2.0] yeah that is a good point. I will try to work on something more efficient. sorry, newb here :) Quote
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.