[emails] delay an email to send 5 minutes after form has been submitted

trip

Member
Hi
I would like to know if someone has managed to send a delayed email from a form after the form has been submitted.

ie,
- form is submitted
- email is sent 5 minutes later.

If you have done this, please will you post how you did this here. Thanks
Matthew
 
You could try doing it with the email cron plugin.

Create a date element that always records the current date/time (so gives you last submit time), and a simple field for "email sent" (default it to 0).

Use a copy of the list with a pre-filter that only selects rows with "email sent" of 0.

Add the email cron plugin to that copy of the list, and create a 'condition' that checks the submit date is >= 5 mins.

Add an "update" to set the "email sent" to 1.

Run the cron job once a minute. You'd probably want to do this with an actual cron job (ie. UNIX cron) that wget's a page on your site once a minute, to trigger the Fabrik cron plugin regularly (I think that's detailed in the wiki). Our cron plugin is only fires when a page loads, it's not an actual real "cron", so if nobody loads a page on your site within 5 mins ...

-- hugh
 
Hi Hugh
we have tried to do the cron and have not had any success.

Email 5 minutes after the registration email using fabrik.
We have enabled the Fabrik Scheduled Tasks system plugin and added the schedule in the components cron section still the cron is not running.

Please let us know what are the requirements for executing the fabrik email cron.
 
Those are the requirements ... enable the cron plugin, and set up a scheduled task.

Does it run if you do it by hand (in the scheduled tasks tab, select the task and hit the Run button).

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top