Reputation: 23
This is pretty much my last resort as I am about to give up after fighting it for the laast 3 weeks. Just took a stab that someone might be able to help or been in this situation before. I bought the "Appointment Scheduler" script from PHPJabbers and it works great EXCEPT for the e-mailing a reminder 24 hours before the customer's appointment. I originally had this installed on GoDaddy and kept getting an error when the cron would run about Zend Optimizer not being installed (which it was and everything else ran fine) so I installed it on another site I have and I seem to have it working, but no e-mails get sent. Every hour when the cron runs I get this:
X-Powered-By: PHP/5.2.17
Set-Cookie: StivaApp=c29a18b3ff60f13f27c3f557bda0bc25; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html; charset=utf-8
My cron job code (done through my cpanel) is as follows (with my site folder changed to **):
php /home/****/public_html/josh/script/cron.php
and it runs every 30 minutes. I have 4 test appointments in the database that should be getting confirmation emails, but nothing happens.
Does anyone have any ideas on what I could try next?
Upvotes: 1
Views: 2227
Reputation: 97
Today I worked one of the issues out with my domain host. My cron jobs were running but I was getting no email notice. The answer: "...cron jobs that produce no output will not send an email. As cron won't just discard output generated by a job, If a cron job generates output that is otherwise not handled (eg, by mailing it to someone, or putting it into a file or redirecting it to /dev/null) this output will be emailed as described in the MAILTO variable."
My cron job was truncating mysql tables and generating no output, hence no email notification.
Upvotes: 1