I have a form that needs to send three different emails in a very specific order, and so I placed the three email actions in the hope that it would follow that order, but it doesn't.
Even though I have the actions in the correct order, I some times get the third email before the first or second email. Inspecting the email headers, I can see that their dates are exactly the same.
Is there a way to tell Chronoforms to "honour" the email order? or maybe wait for a certain action to finish and then proceed to the next action?
Even though I have the actions in the correct order, I some times get the third email before the first or second email. Inspecting the email headers, I can see that their dates are exactly the same.
Is there a way to tell Chronoforms to "honour" the email order? or maybe wait for a certain action to finish and then proceed to the next action?
Hi htavares,
Basically no. ChronoForms is sending them in the order you have them set up - but after that many things can happen and you have no guarantee that they will be received in the same order.
You can try adding Custom Code actions between the emails with code like this
Bob
Basically no. ChronoForms is sending them in the order you have them set up - but after that many things can happen and you have no guarantee that they will be received in the same order.
You can try adding Custom Code actions between the emails with code like this
<?php
sleep(5);
?>
That should delay the sending of the next email by five seconds - but it will also delay the showing of the Thank you message. (You can probably do something more complex to get round that if it is a problem.) This might work but no guarantee.
Bob
Thanks for that suggestion Bob, I used the usleep() PHP code to test it yesterday, and it works, but was hoping that there might be another way.
At the moment I'm using the wait code, and it does work, and I'm showing the loading image technique until the form is done, so not too bad🙂
At the moment I'm using the wait code, and it does work, and I'm showing the loading image technique until the form is done, so not too bad🙂
This topic is locked and no more replies can be posted.