Support Forums

Listing Renewal Notification Emails not working

This is a discussion on Listing Renewal Notification Emails not working within the Technical Support forums, part of the Technical Support Forums category; Hi! I've just received a few emails from my client to say that he's not receiving email notifications for the ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 05-01-2009, 07:41 AM   #1
Member
 
 
Join Date: Apr 2008
Location: UK
Posts: 42
Rep Power: 11
Kazza is on a distinguished road
Unhappy Listing Renewal Notification Emails not working

Hi! I've just received a few emails from my client to say that he's not receiving email notifications for the listings he's placed.

The checkout settings are correct - ie allow renewals is yes and renewal days are 10.

I have searched the forum before asking this question; I've read in another post that someone has to visit the website home page in order for it to trigger any renewal emails to be sent - is this correct?

Any advice would be appreciated, thanks in advance!
__________________
Version 4.0.8 ~ Developer
Kazza is offline  
Old 05-01-2009, 08:17 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,297
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Kazza
I have searched the forum before asking this question; I've read in another post that someone has to visit the website home page in order for it to trigger any renewal emails to be sent - is this correct?
Yes, that is correct.

When someone hits the sites front end, the database is checked for a lastdate value. If the last date is older than the current date the cron script is run which send out notification, expires old ads etc.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 05-01-2009, 08:31 AM   #3
Member
 
 
Join Date: Apr 2008
Location: UK
Posts: 42
Rep Power: 11
Kazza is on a distinguished road
Default

Hi! Thanks for the reply! Right I see....is there any way to get it to do this automatically - I've read somewhere about setting up a chronjob, I've heard of these but not sure how or where I would set one up?
__________________
Version 4.0.8 ~ Developer
Kazza is offline  
Old 05-01-2009, 08:56 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,297
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Kazza
I've read somewhere about setting up a chronjob, I've heard of these but not sure how or where I would set one up?
And this is probably the reason it wasnt done like this from the very start.

Some web hosts dont allow you to use cron and the ones that do often differ on how to go about setting it up. I *THINK* you should just be able to create a cron job to run the script cron.php to get the desired results but you would have to try it to be sure.

For actually setting up the cron job itself you will have to consult your web hosts documentation to ask them how to do it since it varies from host to host. There is often an icon in the web hosts control panel.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 05-01-2009, 10:07 AM   #5
Member
 
 
Join Date: Apr 2008
Location: UK
Posts: 42
Rep Power: 11
Kazza is on a distinguished road
Default

Hi! Well I've set up a crontab file to see if it works - I've pointed it to the cron.php file in the includes folder - just a quick question; do you know if I need to include the admin username/password in the file or is the link to the cron.php file enough? (As you can tell I'm very new to setting up a crontab!!)
__________________
Version 4.0.8 ~ Developer
Kazza is offline  
Old 05-01-2009, 11:46 AM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,492
Rep Power: 131
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Hi,

That is indeed the reason we have an internal cron job. Setting them up can be difficult if you do not have experience using them. For the actual cron job just have it run the includes/cron.php on a daily basis.

Then in the connections/classifieds.php file add: $manualcron = TRUE; This will prevent the script from trying to run it since you are doing it from the server.

Also admin information is not required and regardless of the time set it will still only run once a day.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-03-2009, 10:05 AM   #7
Member
 
 
Join Date: Apr 2008
Location: UK
Posts: 42
Rep Power: 11
Kazza is on a distinguished road
Default

Hi Eric!

Thanks for your reply and clearing up my questions. I've added the line to the Classifieds file - will give it try and hopefully it will work! Thanks again! K
__________________
Version 4.0.8 ~ Developer
Kazza is offline  
Old 05-07-2009, 07:52 AM   #8
Member
 
 
Join Date: Apr 2008
Location: UK
Posts: 42
Rep Power: 11
Kazza is on a distinguished road
Default

Just to update my post; got the cronjob to work, I've been receiving renewal messages as expected. Thanks for all your help and advice! K
__________________
Version 4.0.8 ~ Developer
Kazza is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ad expiration notification not working? Kazza Technical Support 4 09-11-2008 09:27 AM
Renewal emails are being sent to multiple people castus Technical Support 0 05-14-2008 11:47 AM


All times are GMT -4. The time now is 08:02 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0