2

I am using a shared windows hosting in which sending 120 mails/hour is allowed though php code. i have a php page to send emails more than 200 mails at a time.But i want to run the page, after every hour(scheduled task). I will split the emails(in 100s) and want send automatically after every hour.

How is this possible in php to run a php page after every hour ?

Thanks

2
  • 1
    cronjob or what ever the windows equivalent is. why would would you ever host on windows? Commented Feb 12, 2012 at 7:29
  • 1
    You can set this up using Plesk - at least that's what I'm presuming you're using because that seems to be the only major panel that actively supports a separate build for Windows. Commented Feb 12, 2012 at 12:10

3 Answers 3

8

Use PHP Cron Jobs with cPanel

cPanel Simple Cron

you can get started with the simple cron tool built into cPanel. The url for it is:

https://www.yoursite.com/page.php

The command to run:

/usr/local/bin/php -f /home/(username)/public_html/page.php

Next you'll want to select an option from all the select boxes. Remember to select an option in each box. If you want something to run every hour, select Minute: 60; Hour:Every; Day: Every; Month: Every; Weekday: Every;

Click save and you are all set! You'll get an email every time the cron job runs, but if you don't want to get it - put :blackhole: into the output email field at the top.

Sign up to request clarification or add additional context in comments.

1 Comment

Even though you answered the wrong question, I found this solution very useful. Thank you.
5

Use a script on Google AppEngine to "ping" yours (Scheduled Tasks to be more precise). It's free to use.

Comments

1

You can schedule a task in Windows - control panel->administrative tools is where you find task scheduler.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.