I am trying to setup a simple form where people (non-users) can enlist our club.
They enter name, email, phone etc, and captcha and press submit.
My OnSubmit events look like this:
Check Captcha
-OnSuccess
--Email recipent1
--Email recipent2
--ReDirect User
-OnFail
The first recipent is the accountant in our club who recieves the data from the form, basicaly. It only uses the Static fields in the email event.
The second recipent is supposed to be the enlisted user, in order to provide him with a receipt for his enlisting, but this one I can never get sent.
I think I tried every combination for the second email. I made it as a copy of the first one, only using static fields; I tried to use the dynamic "to" instead of the static entering the name of the email field from the form. But no...
Using the debugger event, it told me it sent the second email, but it still sent the first.
And yes, both email events are enabled🙂
They enter name, email, phone etc, and captcha and press submit.
My OnSubmit events look like this:
Check Captcha
-OnSuccess
--Email recipent1
--Email recipent2
--ReDirect User
-OnFail
The first recipent is the accountant in our club who recieves the data from the form, basicaly. It only uses the Static fields in the email event.
The second recipent is supposed to be the enlisted user, in order to provide him with a receipt for his enlisting, but this one I can never get sent.
I think I tried every combination for the second email. I made it as a copy of the first one, only using static fields; I tried to use the dynamic "to" instead of the static entering the name of the email field from the form. But no...
Using the debugger event, it told me it sent the second email, but it still sent the first.
And yes, both email events are enabled🙂
I'd try this
OnSubmit
-Check Captcha
--on success
--on fail
---event loop
- email recipient 1(static)
- email recipient 2(dynamic)
- show thank you
I don't know if you can do this either, but is it possible to set up a static and dynamic under one email event? I've been looking into doing something similar, but setting up a dynamic subject with the name of the person who filled out the form in the subject line, set to a static email recipient.
OnSubmit
-Check Captcha
--on success
--on fail
---event loop
- email recipient 1(static)
- email recipient 2(dynamic)
- show thank you
I don't know if you can do this either, but is it possible to set up a static and dynamic under one email event? I've been looking into doing something similar, but setting up a dynamic subject with the name of the person who filled out the form in the subject line, set to a static email recipient.
Hi Yxos,
I suggest that you don't put the Emails into the Check Captcha On Success Event. As mezzio suggests, leave that empty, put an Event Loop into the Check Captcha On Fail event and put the Emails after the Check Captcha event.
To send an email to the user you will need to use the Dynamic To Email box. The Subject, From Email and From Name can be left as Static entries.
Bob
I suggest that you don't put the Emails into the Check Captcha On Success Event. As mezzio suggests, leave that empty, put an Event Loop into the Check Captcha On Fail event and put the Emails after the Check Captcha event.
To send an email to the user you will need to use the Dynamic To Email box. The Subject, From Email and From Name can be left as Static entries.
Bob
HI mezzio,
I don't think that you can get a Static & Dynamic To Email to work together in the standard Email action (you can with my custom Email [GH] action ). You can use a CC though.
A Dynamic Subject with both static and dynamic content is possible. Use a Custom Code box to build it before the Email action
Bob
I don't think that you can get a Static & Dynamic To Email to work together in the standard Email action (you can with my custom Email [GH] action ). You can use a CC though.
A Dynamic Subject with both static and dynamic content is possible. Use a Custom Code box to build it before the Email action
<?php
$form->data['subject'] = 'Message from '.$form->data['name'];
?>
Then use subject in the Dynamic Subject box (or you can add it directly in Subject box of the Email [GH] action as Message from {name}).Bob
I suggest that you don't put the Emails into the Check Captcha On Success Event. As mezzio suggests, leave that empty, put an Event Loop into the Check Captcha On Fail event and put the Emails after the Check Captcha event.
I never thought of using Event Loop On Fail. (didn't know what it was...)
At least now I have an idea for how to proceed... I will test it later today
Thanks for the hint!
HI mezzio,
I don't think that you can get a Static & Dynamic To Email to work together in the standard Email action (you can with my custom Email [GH] action ). You can use a CC though.
A Dynamic Subject with both static and dynamic content is possible. Use a Custom Code box to build it before the Email action
<?php
$form->data['subject'] = 'Message from '.$form->data['name'];
?>
Then use subject in the Dynamic Subject box (or you can add it directly in Subject box of the Email [GH] action as Message from {name}).Bob
Thank you, I'll check this out!
This topic is locked and no more replies can be posted.