0

Sorry if this was too easy one.

I am struck with a problem for 3 days. I need to send emails to the persons whose licence is going to expire. The expiry dates will be in mysql database.. I am searching for it since three days,but every answer described is to "start a task manager". But i don't understand how the task started in our system can be performed in server..? Is there a way to send emails automatically without manual interaction. I found lot on CRON JOB.But how can i install it in the server.

Please help me if anyone has faced this earlier. Thanks in advance

6
  • it is there with my MD.can we make it in cpanel Commented Nov 15, 2013 at 13:15
  • tell me about your operative system... Commented Nov 15, 2013 at 13:15
  • Idk what you are talking about, but if you have cpanel is too easy... Commented Nov 15, 2013 at 13:16
  • you can set a cron in cpanel see docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/… Commented Nov 15, 2013 at 13:16
  • my operating system is windows7 Commented Nov 15, 2013 at 13:17

2 Answers 2

1

Ok if you have the php to send emails when the licence is going to expire, as you said you have to use CRON JOBs, if you have cPanel in your webhosting you have them installed.

http://gyazo.com/20d34f0daa306ab17ac6eb3ce3cce561.png

http://gyazo.com/8805ff782cfa906f376bcc6a118dd016.png

On the last image, you will se a command line.

There you should type:

GET http://yourdomain.com/yourphpfile.php

Where it says "hour" click the select and click "every hour" then add the new cron and your php file will be called every hour.

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

Comments

0

If you're on a Linux host, you can use a cron job to check for expired licences. If you're on a Windows host, you can use Windows Task Scheduler. If you don't have access to either, there are external services such as Monitor.us, which will visit your web page every hour or so.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.