Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By zlhawwa
#787148
Dears,
I'm trying to build a process where a form is being filled, then approved by a supervisor. upon approval I want to send the form data by mail to an external user but the mail sending should only be sent on a specific day of the week(Friday) even if the form was approved on a previous day.
I'm using the last step in the process as a script task which sends an e-mail, but i'm not able to pause the script task and be released automatically on the "next Friday".
thank you for your help :)
User avatar
By amosbatto
#787159
Emails are only sent out when the cron.php script is executed, so if you set your Linux cron job or Windows Scheduled Task on the server to only execute cron.php on Fridays, then it should send out the emails on that day.

Another option is to write data about the emails to a PM Table and the date when they should be sent. Then, set up a looping process with a script task which periodically checks the date in the PM Table and if it has passed, then send out the email.
See: viewtopic.php?f=41&t=709519&p=786813#p786813

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]