send-email[recipient] cannot be populated with fields[recipient]
This is an open discussion with 3 replies, filed under Troubleshooting.
Search
I've got the same problem...
Line 174+ of /toolkit/events/event.section.php
is responsible for figuring out the recipients. This field does no behave like the others, I.E. it is not looking for dynamic values like the other fields. Potentially it could be able to by using the __sendEmailFindFormValue()
function, which is in use a little below that line.
This has been added/fixed in 2.0.2
Create an account or sign in to comment.
I've got a contact form with a selectbox for users to select the type of inquiry. I want to provide the value of the select (a system username) to the Send Email filter as a recipient name. Here's the field code:
admin
andzheng
are authors in the system. Now, here's how the info gets passed to the Send Email filter:This is not working. The entries save, but no email gets sent. However, if I directly input the value of
fields[recipient]
, it does work. For example:I've tried debugging by using
fields[recipient]
elsewhere, like insend-email[sender-name]
. I get the value expected: eitheradmin
orzheng
. For some reason, though, I can't use it to set the email recipient.Anyone else experience this? Any ideas?