Re: [PHP] Sending automatically mail
Depending on your OS, you would set up some sort of cron job to run at certain intervals. If that can't be done, Windows-type OS' can run a schedule to launch URLs into browser, so if your desktop machine was on at the time, it could launch a URL on the server which sends the emails for you... if you can set up a cron with your host, that'd be the way to go. Justin French on 10/08/02 3:03 AM, Jan Souman ([EMAIL PROTECTED]) wrote: I would like my php-script to send a mail every day automatically, without anyone opening my site. Is this possible and if yes can anyone tell how to do this? Kind regards, Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sending automatically mail
I had a question like this once, and the most applicable answer I got from this list was to make a script which triggers *IF* a certain time of day was reached. The only problem is that it had to be triggered by one visitor's clicking at least (the script was asleep in a page until that page was called). Now, it comes to my mind that you could have one hidden page which META refresh tags (refreshing itself let's say every hour), with a script inside that will trigger *IF* a certain hour (time) has passed. I hope this makes any sense, C. -Original Message- From: Jan Souman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Sending automatically mail I would like my php-script to send a mail every day automatically, without anyone opening my site. Is this possible and if yes can anyone tell how to do this? Kind regards, Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending automatically mail
César aracena [EMAIL PROTECTED] wrote in message 002101c23fcb$4e43c390$93c405c8@gateway">news:002101c23fcb$4e43c390$93c405c8@gateway... I had a question like this once, and the most applicable answer I got from this list was to make a script which triggers *IF* a certain time of day was reached. The only problem is that it had to be triggered by one visitor's clicking at least (the script was asleep in a page until that page was called). Now, it comes to my mind that you could have one hidden page which META refresh tags (refreshing itself let's say every hour), with a script inside that will trigger *IF* a certain hour (time) has passed. I hope this makes any sense, C. -Original Message- From: Jan Souman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Sending automatically mail I would like my php-script to send a mail every day automatically, without anyone opening my site. Is this possible and if yes can anyone tell how to do this? Kind regards, Jan I think exec() with Cron would also do the trick... Obviously this is under the assumption that you are under a UNIX-type platform... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending automatically mail
Kondwani Spike Mkandawire [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... César aracena [EMAIL PROTECTED] wrote in message 002101c23fcb$4e43c390$93c405c8@gateway">news:002101c23fcb$4e43c390$93c405c8@gateway... I had a question like this once, and the most applicable answer I got from this list was to make a script which triggers *IF* a certain time of day was reached. The only problem is that it had to be triggered by one visitor's clicking at least (the script was asleep in a page until that page was called). Now, it comes to my mind that you could have one hidden page which META refresh tags (refreshing itself let's say every hour), with a script inside that will trigger *IF* a certain hour (time) has passed. I hope this makes any sense, C. -Original Message- From: Jan Souman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Sending automatically mail I would like my php-script to send a mail every day automatically, without anyone opening my site. Is this possible and if yes can anyone tell how to do this? Kind regards, Jan I think exec() with Cron would also do the trick... Obviously this is under the assumption that you are under a UNIX-type platform... sorry I meant shell_exec() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending automatically mail
Well, if you compile a cgi version of php, just add a cronjob to run your script. When you automate these things though, especially if it's sending out e-mail, it's best to carefully setup error reporting to catch any script failures or faults -- you want them reported to you quickly and to kill the script gracefully. I learned the hard way with members our e-mail publication. Regards, Jeff Hill - Original Message - From: César Aracena [EMAIL PROTECTED] To: 'Jan Souman' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 09, 2002 1:36 PM Subject: RE: [PHP] Sending automatically mail I had a question like this once, and the most applicable answer I got from this list was to make a script which triggers *IF* a certain time of day was reached. The only problem is that it had to be triggered by one visitor's clicking at least (the script was asleep in a page until that page was called). Now, it comes to my mind that you could have one hidden page which META refresh tags (refreshing itself let's say every hour), with a script inside that will trigger *IF* a certain hour (time) has passed. I hope this makes any sense, C. -Original Message- From: Jan Souman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Sending automatically mail I would like my php-script to send a mail every day automatically, without anyone opening my site. Is this possible and if yes can anyone tell how to do this? Kind regards, Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sending automatically mail
You're probably right. I tend to think like this 'cause I'm a guy with no access to my server at all. I just rent-a-server for all my hosting needs. C. -Original Message- From: Kondwani Spike Mkandawire [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 2:36 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Sending automatically mail Kondwani Spike Mkandawire [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... César aracena [EMAIL PROTECTED] wrote in message 002101c23fcb$4e43c390$93c405c8@gateway">news:002101c23fcb$4e43c390$93c405c8@gateway... I had a question like this once, and the most applicable answer I got from this list was to make a script which triggers *IF* a certain time of day was reached. The only problem is that it had to be triggered by one visitor's clicking at least (the script was asleep in a page until that page was called). Now, it comes to my mind that you could have one hidden page which META refresh tags (refreshing itself let's say every hour), with a script inside that will trigger *IF* a certain hour (time) has passed. I hope this makes any sense, C. -Original Message- From: Jan Souman [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Sending automatically mail I would like my php-script to send a mail every day automatically, without anyone opening my site. Is this possible and if yes can anyone tell how to do this? Kind regards, Jan I think exec() with Cron would also do the trick... Obviously this is under the assumption that you are under a UNIX-type platform... sorry I meant shell_exec() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php