Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi,

Im wondering if there is possible with couch to make it send notification by mail based on a set date.

In my data-bound form i have a INPUT where i put a sepssific date, and on this date i would like to recive a mail atomaticly!

Is this possible?
There would be two parts to the solution -

1. A PHP script that uses the specified date-field to list all relevant pages and send emails.
2. Another script that calls the script above at regular intervals.

The first part can be done using a Couch template with <cms:pages> finding the pages and <cms:send_mail> dispatching the mails.

The second part will require a 'cron' job. It is likely that your host already provides this service. If not, there are third-party services available with fairly modest charges.

Use that to call the first script at any interval you desire.

Hope it helps.
2 posts Page 1 of 1