InMotion Hosting Support Center

How do I set up a cron job for email autoresponders?

Category: How To

2012-01-08 4:50 am EST

Hits: 7,704
I want to setup some cron jobs to turn on & off a auto responder on a support email address , so basically out of hours they get an auto response.

How can I do this ?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by InMotion Hosting staff


Tim S
13,821 Points
2012-01-09 12:49 pm EST
Hi fouldsc,

Thanks for posting your question. I'm more than happy to assist you today. Unfortunately, cPanel does not offer the ability to turn on and off autoresponders at specific times each day. However, you can write a php script to change the time stamps in the autoresponder's file each day to do so.

When you create an autoresponder in cPanel it creates a .JSON file located in the ".autorespond" folder in the root of your account.

Your PHP script would modify the UNIX time stamp in the file everyday at a specific time. This would enable the autoresponder based on the "new" time inserted into the file.

I hope this helps! If you need further assistance please feel free to contact us.


Tim S

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!