Forum Moderators: coopster
imap_status(): supplied argument is not a valid imap resource
The script works fine if I run it from a browser, but not from a cron job. For example,
/usr/bin/php /home/mydomain/www/cron-get-bounces.php
Have any of you run into this? And if so, did you come up with a solution?
I am guessing that something in the environment is weird
are you sure it is the exact same script you are calling in the browser? is the script relying on session or env vars that aren't available when running it via cron.
have you tried running it via the command line? does that work?
I am also guessing there is an unhandled error farther up in your script possibly with the imap_open