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

Category: How To

fouldsc
Asked:
2012-01-08 4:50 am EST

Hits: 7,027
Hi,
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

0

Tim S.
Staff
9,967 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.

Thanks!

Tim S

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

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!