WebFaction
Community site: login faq

Hello,

I was wondering if there was any easy setting changes that could be implemented which would modify the autoreponder to only send out the autoresponder email once every ~4 days or so?

Thanks!

asked 12 May '11, 01:19

andrewb
111
accept rate: 0%


Hi,

The Autoresponder is asynchronous and if active it sends out the predefined response when any mail arrives to the inbox.

If you mean that you want to turn it on automatically after every fives days and urn it off after one day then that can be accomplished by using our API specifically the function: http://docs.webfaction.com/xmlrpc-api/apiref.html#update_email

You can add the script using the above function to your crontab so that it gets executed periodically using: http://docs.webfaction.com/software/general.html?highlight=crontab#scheduling-tasks-with-cron

Hope that helps!

permanent link

answered 12 May '11, 01:27

neeravk
1.5k3412
accept rate: 41%

My preferred approach to this would be to use a script target for your email address, with a script that does the following:

  1. Check the email address of the sender of the incoming message against a database of email addresses and timestamps
  2. If it's been more 4 or more days since the last auto-response, or if there has never been an auto-response, then send one
  3. Store the sender email address and current timestamp in the database, or update the timestamp for that email address if it was already in the database
permanent link

answered 12 May '11, 10:41

seanf
12.2k42136
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×7

question asked: 12 May '11, 01:19

question was seen: 3,577 times

last updated: 12 May '11, 10:41

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM