 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
August 7th, 2006, 10:34 AM
|
#1 (permalink)
| | Member
Join Date: Apr 2006
Posts: 63
| sendnotice.php cron job sending daily notifications
I set up the sendnotice cron job to run daily at midnight so it will remove expired ads but I notice that it is also sending out daily notifications: Can I set it so that it doesn't do this daily? As I can imagine this will begin to test the patience of visitors to the site. Please advise. Thanks. |
| |
August 7th, 2006, 12:43 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
It will not send out daily reminders. Once a reminder is sent the ad will be marked status not 0 and approved is now 2 which means it will not be scanned again and is expired. This happens once and the user gets emailed once.
|
| |
August 12th, 2006, 11:46 PM
|
#3 (permalink)
| | Member
Join Date: Apr 2006
Posts: 63
|
I cannot seem to figure out why my site keeps sending out renewal notices ======================= ======================= Any idea why it might be doing this?
=======================
One other item. I don't suppose there is anyway to hide the below area highlighted in red in the receiver's message header information is there? Quote:
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - myserverrname.myhost.com
X-AntiAbuse: Original Domain - hotmail.com
X-AntiAbuse: Originator/Caller UID/GID - [32087 500] / [47 12]
X-AntiAbuse: Sender Address Domain - myserverrname.myhost.com
X-Source: /usr/local/bin/php
X-Source-Args: /usr/local/bin/php /home/myuseraccount/public_html/sendnotice.php
X-Source-Dir: /home/hiroshi9
Return-Path: myuseraccount@myserverrname.myhost.com |
Last edited by blankoboy; August 13th, 2006 at 04:57 AM.
|
| |
August 13th, 2006, 10:28 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
One expire email is sent once per day till it expires.
|
| |
August 13th, 2006, 12:45 PM
|
#5 (permalink)
| | Member
Join Date: Apr 2006
Posts: 63
| Quote:
Originally Posted by Chuck S One expire email is sent once per day till it expires. | Isn't this counter to what you posted above? Quote: |
It will not send out daily reminders. Once a reminder is sent the ad will be marked status not 0 and approved is now 2 which means it will not be scanned again and is expired. This happens once and the user gets emailed once
| So, if a user posts his/her ad for 2 weeks they are going to get a reminder notice everyday until the 2 weeks are up? If so, is there anyway to reduce this down to until the last 4-5 days? I don't think members will like getting daily reminders and instead find it rather annoying. |
| |
August 13th, 2006, 12:55 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
No it is exactly as I posted. The sendnotice only sends out an email if its within 3 days of expiration Code: Content visible to verified customers only.
Okay lets disect the code
86399 is how many seconds there are in a day. $today is the time right now. $timediff is the difference between right now and the lastupdate time which is updated everytime the script runs. Therefore if the script is ran more than once a day it is not going to do nothing.
Then lets go here Code: Content visible to verified customers only.
$expire is set to right now plus 3 days to so the query to pull the ads is it will pull anything that is less than today plus 3 days. So ads expiring 2 weeks from now are never pulled
|
| |
August 13th, 2006, 09:54 PM
|
#7 (permalink)
| | Member
Join Date: Apr 2006
Posts: 63
|
Thanks for the explanation Chuck. Any idea, though, why mine would be sending out expiration/renewal notices for 14, 12, and 11 days in advance?
Would it have anything to with my having set Number of days to show sold/closed ads? (under 'Show Ads Options') to 15?
|
| |
August 14th, 2006, 10:06 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
I would not think so but you can try setting it to say 1 and see what happens. You can also in sendnotice.php do this and test Code: Content visible to verified customers only.
|
| |
October 21st, 2007, 07:11 PM
|
#9 (permalink)
| | Junior Member Verified Customer
Join Date: Aug 2007
Posts: 7
|
I also have this problem. I'm running auctions so I have send notice running every 15 minutes.
Notifications are being sent out 10 days in advance.
Chuck would I also need to make this change to sendnotice?
$expire = mktime($hour1,$min,$sec,$mon,$mday,$year);
in addition to what you have above: $hour1 = $hour + ($Globals['numdays'] * 24);
$newend = mktime($hour1,$min,$sec,$mon,$mday,$year);
|
| |
October 21st, 2007, 08:21 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
I dont know all depends how you want to modify things. Our script is set to pull and send emails for ads 3 days before they expire. So you would see how we do it and then modify it to your needs.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 06:55 AM. | |